Class: DbSchema::Operations::AlterColumnType
- Inherits:
-
Object
- Object
- DbSchema::Operations::AlterColumnType
- Defined in:
- lib/db_schema/operations.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.
-
#using ⇒ Object
readonly
Returns the value of attribute using.
Instance Method Summary collapse
-
#initialize(name, new_type:, using: nil, **new_attributes) ⇒ AlterColumnType
constructor
A new instance of AlterColumnType.
Constructor Details
#initialize(name, new_type:, using: nil, **new_attributes) ⇒ AlterColumnType
Returns a new instance of AlterColumnType.
90 91 92 93 94 95 |
# File 'lib/db_schema/operations.rb', line 90 def initialize(name, new_type:, using: nil, **new_attributes) @name = name @new_type = new_type @using = using @new_attributes = new_attributes end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
88 89 90 |
# File 'lib/db_schema/operations.rb', line 88 def name @name end |
#new_attributes ⇒ Object (readonly)
Returns the value of attribute new_attributes.
88 89 90 |
# File 'lib/db_schema/operations.rb', line 88 def new_attributes @new_attributes end |
#new_type ⇒ Object (readonly)
Returns the value of attribute new_type.
88 89 90 |
# File 'lib/db_schema/operations.rb', line 88 def new_type @new_type end |
#using ⇒ Object (readonly)
Returns the value of attribute using.
88 89 90 |
# File 'lib/db_schema/operations.rb', line 88 def using @using end |