class <%= param(:name).camelcase %> < <%= app_config.orm.camelcase %>::Migration def self.up <% unless columns.empty? -%> create_table :<%= @table_name %> do |t| <% for column in columns -%> t.column :<%= column.column_name %>, :<%= column.column_type %> <% end -%> end <% end -%> end def self.down <% unless columns.empty? -%> drop_table :<%= @table_name %> <% end -%> end end