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

Version Path
goma-0.0.1.rc3 lib/generators/goma/migration/templates/migration_existing.rb
goma-0.0.1.rc2 lib/generators/goma/migration/templates/migration_existing.rb
goma-0.0.1.rc1 lib/generators/goma/migration/templates/migration_existing.rb
goma-0.0.1.gamma lib/generators/goma/migration/templates/migration_existing.rb
goma-0.0.1.beta lib/generators/goma/migration/templates/migration_existing.rb
goma-0.0.1.alpha lib/generators/goma/templates/migration_existing.rb