Class: DbAgile::Core::Schema::Migrate::ExpandTable

Inherits:
Operation
  • Object
show all
Defined in:
lib/dbagile/core/schema/migrate/expand_table.rb

Instance Attribute Summary

Attributes inherited from Operation

#operations, #rel_object

Instance Method Summary collapse

Methods inherited from Operation

#attribute, #candidate_key, #each_sub_operation, #foreign_key, #index, #initialize, #kind, #not_staged!, #ops_to_sql92, #staged!, #supports_sub_operation!, #supports_sub_operation?, #table_name

Constructor Details

This class inherits a constructor from DbAgile::Core::Schema::Migrate::Operation

Instance Method Details

#to_sql92Object



7
8
9
# File 'lib/dbagile/core/schema/migrate/expand_table.rb', line 7

def to_sql92
  "ALTER TABLE ADD #{ops_to_sql92(operations)}"
end