Sha256: 9f653be830c7c4f7c3aec5a605ccebe9d12368e5d2c502f4b53558100b683c70

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

class AddAASMTo<%= table_name.camelize %> < ActiveRecord::Migration
  def self.up
    add_column :<%= table_name %>, :<%= column_name %>, :string
  end

  def self.down
    remove_column :<%= table_name %>, :<%= column_name %>
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aasm-4.9.0 lib/generators/active_record/templates/migration_existing.rb
aasm-4.8.0 lib/generators/active_record/templates/migration_existing.rb
aasm-4.7.0 lib/generators/active_record/templates/migration_existing.rb
aasm-4.6.0 lib/generators/active_record/templates/migration_existing.rb