consolidated to create_table.rb