aboutsummaryrefslogtreecommitdiff
path: root/interfaces/ruby/ruby.rb
blob: 2e6c5d90b5871c516621f2d3188696ce48b8b413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'active_record'

ActiveRecord::Base.establish_connection(
  adapter: 'sqlite3',
  database: "#{__dir__}/../../db.sqlite3"
)

require_relative 'models/comment'
require_relative 'models/config'
require_relative 'models/post'
require_relative 'models/tag'
require_relative 'models/user'