lib/rom/sql/relation.rb in rom-sql-1.3.0 vs lib/rom/sql/relation.rb in rom-sql-1.3.1
- old
+ new
@@ -24,18 +24,18 @@
use :auto_wrap
include Writing
include Reading
+ schema_dsl SQL::Schema::DSL
+
# Set default dataset for a relation sub-class
#
# @api private
def self.inherited(klass)
super
klass.class_eval do
- schema_dsl SQL::Schema::DSL
-
schema_inferrer -> (name, gateway) do
inferrer_for_db = ROM::SQL::Schema::Inferrer.get(gateway.connection.database_type.to_sym)
begin
inferrer_for_db.new.call(name, gateway)
rescue Sequel::Error => e