Sha256: 7e529b0220b3c6285106d0637f63d282707368eaf5beba36c1369765b8457f28
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= table_name %> do |t| <% for attribute in attributes -%> t.<%= attribute.type %> :<%= attribute.name %> <% end -%> <% unless options[:skip_timestamps] %> t.timestamps <% end -%> end end def self.down drop_table :<%= table_name %> end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stage-0.3.1 | rails_generators/stage/templates/migration.rb |
stage-0.3.2 | rails_generators/stage/templates/migration.rb |