Class: SQL::Mysql::Table

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

Instance Method Summary collapse

Constructor Details

#initialize(adapter, table_name) ⇒ 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