Class: SQL::Mysql::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-migrations/sql/mysql.rb

Instance Method Summary (collapse)

Constructor Details

- (Table) initialize(adapter, table_name)

Returns a new instance of Table



66
67
68
69
70
71
# File 'lib/dm-migrations/sql/mysql.rb', line 66

def initialize(adapter, table_name)
  @columns = []
  adapter.table_info(table_name).each do |col_struct|
    @columns << SQL::Mysql::Column.new(col_struct)
  end
end