lib/radical/model.rb in radical-1.0.2 vs lib/radical/model.rb in radical-1.1.0
- old
+ new
@@ -1,23 +1,14 @@
+# frozen_string_literal: true
+
require_relative 'database'
module Radical
class ModelNotFound < StandardError; end
class Model
class << self
attr_accessor :table_name
-
- def database(name)
- conn = SQLite3::Database.new name
- conn.results_as_hash = true
- conn.type_translation = true
- Database.connection = conn
- end
-
- def prepend_migrations_path(path)
- Database.migrations_path = path
- end
def db
Database.connection
end