Class: DbSchema::Changes::AlterTable
- Inherits:
-
Object
- Object
- DbSchema::Changes::AlterTable
- Defined in:
- lib/db_schema/changes.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#indices ⇒ Object
readonly
Returns the value of attribute indices.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, fields: [], indices: [], checks: []) ⇒ AlterTable
constructor
A new instance of AlterTable.
Constructor Details
#initialize(name, fields: [], indices: [], checks: []) ⇒ AlterTable
Returns a new instance of AlterTable.
268 269 270 271 272 273 |
# File 'lib/db_schema/changes.rb', line 268 def initialize(name, fields: [], indices: [], checks: []) @name = name @fields = fields @indices = indices @checks = checks end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
266 267 268 |
# File 'lib/db_schema/changes.rb', line 266 def checks @checks end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
266 267 268 |
# File 'lib/db_schema/changes.rb', line 266 def fields @fields end |
#indices ⇒ Object (readonly)
Returns the value of attribute indices.
266 267 268 |
# File 'lib/db_schema/changes.rb', line 266 def indices @indices end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
266 267 268 |
# File 'lib/db_schema/changes.rb', line 266 def name @name end |