Class: DbSchema::Changes::CreateTable

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: []) ⇒ CreateTable

Returns a new instance of CreateTable.



247
248
249
250
251
252
# File 'lib/db_schema/changes.rb', line 247

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.



245
246
247
# File 'lib/db_schema/changes.rb', line 245

def checks
  @checks
end

#fieldsObject (readonly)

Returns the value of attribute fields.



245
246
247
# File 'lib/db_schema/changes.rb', line 245

def fields
  @fields
end

#indicesObject (readonly)

Returns the value of attribute indices.



245
246
247
# File 'lib/db_schema/changes.rb', line 245

def indices
  @indices
end

#nameObject (readonly)

Returns the value of attribute name.



245
246
247
# File 'lib/db_schema/changes.rb', line 245

def name
  @name
end