Sha256: be01f60e972f5ddba97c36416ba94b8c867581df9569cfd86d659bc462b2589e
Contents?: true
Size: 476 Bytes
Versions: 6
Compression:
Stored size: 476 Bytes
Contents
class AddGomaTo<%= table_name.camelize %> < ActiveRecord::Migration def up change_table(:<%= table_name %>) do |t| <%= migration_data -%> <% attributes.each do |attribute| -%> t.<%= attribute.type %> :<%= attribute.name %> <% end -%> # Uncomment below if timestamps were not included in your original model. # t.timestamps end <%= index_data -%> end def down # Please edit below raise ActiveRecord::IrreversibleMigration end end
Version data entries
6 entries across 6 versions & 1 rubygems