lib/rom/sql/migration/schema_diff.rb in rom-sql-2.5.0 vs lib/rom/sql/migration/schema_diff.rb in rom-sql-3.0.0
- old
+ new
@@ -73,11 +73,11 @@
def primary_key?
attr.primary_key?
end
- def unwrap(type)
- type.optional? ? SQL::Attribute[type.right].meta(type.meta) : type
+ def unwrap(attr)
+ attr.optional? ? SQL::Attribute[attr.right, attr.options].meta(attr.meta) : attr
end
end
class AttributeAdded < AttributeDiff
def type