Class: DbSchema::Changes::AlterTable

Inherits:
Object
  • Object
show all
Defined in:
lib/db_schema/changes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checksObject (readonly)

Returns the value of attribute checks.



266
267
268
# File 'lib/db_schema/changes.rb', line 266

def checks
  @checks
end

#fieldsObject (readonly)

Returns the value of attribute fields.



266
267
268
# File 'lib/db_schema/changes.rb', line 266

def fields
  @fields
end

#indicesObject (readonly)

Returns the value of attribute indices.



266
267
268
# File 'lib/db_schema/changes.rb', line 266

def indices
  @indices
end

#nameObject (readonly)

Returns the value of attribute name.



266
267
268
# File 'lib/db_schema/changes.rb', line 266

def name
  @name
end