aboutsummaryrefslogtreecommitdiff
path: root/db/init.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/init.rb')
-rw-r--r--db/init.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/init.rb b/db/init.rb
new file mode 100644
index 0000000..7c08faf
--- /dev/null
+++ b/db/init.rb
@@ -0,0 +1,11 @@
+require 'active_record'
+
+ActiveRecord::Base.establish_connection(
+ adapter: 'sqlite3',
+ database: 'db.sqlite3'
+)
+
+require_relative 'config'
+require_relative 'comment'
+require_relative 'post'
+require_relative 'tag'