Class: DbSchema::Operations::AlterTable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (readonly)

Returns the value of attribute changes.



37
38
39
# File 'lib/db_schema/operations.rb', line 37

def changes
  @changes
end

#table_nameObject (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