# File lib/rom/sql/migration/schema_diff.rb, line 76 def primary_key? attr.primary_key? end
class ROM::SQL::Migration::SchemaDiff::AttributeDiff
Public Instance Methods
name()
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 68 def name attr.name end
null?()
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 72 def null? attr.optional? end
primary_key?()
click to toggle source
unwrap(attr)
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 80 def unwrap(attr) attr.optional? ? SQL::Attribute[attr.right, attr.options].meta(attr.meta) : attr end