blob: c942cccdbfa0aea1f1e8819dd72b24e7f9559b23 (
plain) (
tree)
|
|
class <%= migration_name %> < ActiveRecord::Migration
def self.up
create_table :<%= table_name %> do |t|
<% for attribute in attributes -%>
t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>
t.timestamps
end
end
def self.down
drop_table :<%= table_name %>
end
end
|