Sha256: 2ebfe3df2d131d9e3ceb26ee01a725c4a8b80a5971bb3ea22ee679e3f25387a5
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
class <%= class_name %>Migration < ActiveRecord::Migration def self.up <% if model -%> create_table :<%= table_name %> do |t| <% attributes.each do |name, type| -%> t.<%= name %> :<%= type %> <% end -%> t.timestamps end <% end -%> end def self.down <% if model -%> drop_table :<%= table_name %> <% end -%> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thorero-gen-0.9.4 | templates/component/migration/activerecord/schema/migrations/%file_name%.rb |