spec/support/helpers.rb in rom-sql-1.0.0.beta1 vs spec/support/helpers.rb in rom-sql-1.0.0.beta2
- old
+ new
@@ -8,9 +8,10 @@
end
def define_schema(name, attrs)
ROM::SQL::Schema.define(
name,
- attributes: attrs.map { |key, value| ROM::SQL::Type.new(value.meta(name: key)) }
+ attributes: attrs.map { |key, value| value.meta(name: key, source: ROM::Relation::Name.new(name)) },
+ type_class: ROM::SQL::Type
)
end
end