Class: DbSchema::Operations::AlterTable
- Inherits:
-
Object
- Object
- DbSchema::Operations::AlterTable
- Defined in:
- lib/db_schema/operations.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, changes = []) ⇒ AlterTable
constructor
A new instance of AlterTable.
Constructor Details
#initialize(table_name, changes = []) ⇒ AlterTable
Returns a new instance of AlterTable.
39 40 41 42 |
# File 'lib/db_schema/operations.rb', line 39 def initialize(table_name, changes = []) @table_name = table_name @changes = changes end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
37 38 39 |
# File 'lib/db_schema/operations.rb', line 37 def changes @changes end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
37 38 39 |
# File 'lib/db_schema/operations.rb', line 37 def table_name @table_name end |