Class: SQL::Mysql::Table
- Defined in:
- lib/gems/dm-migrations-0.9.9/lib/sql/mysql.rb
Instance Method Summary collapse
-
#initialize(adapter, table_name) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(adapter, table_name) ⇒ Table
Returns a new instance of Table.
34 35 36 37 38 39 |
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/mysql.rb', line 34 def initialize(adapter, table_name) @columns = [] adapter.query_table(table_name).each do |col_struct| @columns << SQL::Mysql::Column.new(col_struct) end end |