Class: ROM::SQL::Migration::SchemaDiff::AttributeDiff Private
- Inherits:
-
Object
- Object
- ROM::SQL::Migration::SchemaDiff::AttributeDiff
- Extended by:
- Initializer
- Defined in:
- lib/rom/sql/migration/schema_diff.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Instance Method Summary collapse
- #name ⇒ Object private
- #null? ⇒ Boolean private
- #primary_key? ⇒ Boolean private
- #unwrap(attr) ⇒ Object private
Instance Method Details
#name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
68 69 70 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 68 def name attr.name end |
#null? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 72 def null? attr.optional? end |
#primary_key? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
76 77 78 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 76 def primary_key? attr.primary_key? end |
#unwrap(attr) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
80 81 82 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 80 def unwrap(attr) attr.optional? ? SQL::Attribute[attr.right, attr.].(attr.) : attr end |