From 8d21b802c35d5b1f8e6e868aaa20c1c0066275c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 2 Mar 2021 00:41:56 +0100 Subject: Add new interfaces tree, remake database code as 'ruby' interface This follows the directory structure outlined in my previous commit message. --- interfaces/ruby/ruby.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 interfaces/ruby/ruby.rb (limited to 'interfaces/ruby/ruby.rb') diff --git a/interfaces/ruby/ruby.rb b/interfaces/ruby/ruby.rb new file mode 100644 index 0000000..4c18111 --- /dev/null +++ b/interfaces/ruby/ruby.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' -- cgit v1.2.3