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