Sha256: b62de19a79965b1da3cc82dbc854ff2e08ab14ee2a5f1ed79c960aa46e1336f9

Contents?: true

Size: 178 Bytes

Versions: 5

Compression:

Stored size: 178 Bytes

Contents

class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration
  def change
    add_column :<%= table_name %>, :<%= column_name %>, :string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aasm-4.12.0 lib/generators/active_record/templates/migration_existing.rb
aasm-4.11.1 lib/generators/active_record/templates/migration_existing.rb
aasm-4.11.0 lib/generators/active_record/templates/migration_existing.rb
aasm-4.10.1 lib/generators/active_record/templates/migration_existing.rb
aasm-4.10.0 lib/generators/active_record/templates/migration_existing.rb