Class: DbSchema::Changes::AlterColumnType
- Inherits:
-
Object
- Object
- DbSchema::Changes::AlterColumnType
- Defined in:
- lib/db_schema/changes.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#new_attributes ⇒ Object
readonly
Returns the value of attribute new_attributes.
-
#new_type ⇒ Object
readonly
Returns the value of attribute new_type.
Instance Method Summary collapse
-
#initialize(name, new_type:, **new_attributes) ⇒ AlterColumnType
constructor
A new instance of AlterColumnType.
Constructor Details
#initialize(name, new_type:, **new_attributes) ⇒ AlterColumnType
Returns a new instance of AlterColumnType.
327 328 329 330 331 |
# File 'lib/db_schema/changes.rb', line 327 def initialize(name, new_type:, **new_attributes) @name = name @new_type = new_type @new_attributes = new_attributes end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
325 326 327 |
# File 'lib/db_schema/changes.rb', line 325 def name @name end |
#new_attributes ⇒ Object (readonly)
Returns the value of attribute new_attributes.
325 326 327 |
# File 'lib/db_schema/changes.rb', line 325 def new_attributes @new_attributes end |
#new_type ⇒ Object (readonly)
Returns the value of attribute new_type.
325 326 327 |
# File 'lib/db_schema/changes.rb', line 325 def new_type @new_type end |