Sha256: 25f375419ffc7821a419d1e48208ecae36415e44ff176bcbacf5e227d5311da8

Contents?: true

Size: 255 Bytes

Versions: 15

Compression:

Stored size: 255 Bytes

Contents

class AASMCreate<%= table_name.camelize %> < ActiveRecord::Migration[<%=  ActiveRecord::VERSION::STRING.to_f %>]
  def change
    create_table(:<%= table_name %>) do |t|
      t.string :<%= column_name %>
      t.timestamps null: false 
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
aasm-5.2.0 lib/generators/active_record/templates/migration.rb
aasm-5.1.1 lib/generators/active_record/templates/migration.rb
aasm-5.1.0 lib/generators/active_record/templates/migration.rb
aasm-5.0.8 lib/generators/active_record/templates/migration.rb
aasm-5.0.7 lib/generators/active_record/templates/migration.rb
aasm-5.0.6 lib/generators/active_record/templates/migration.rb
aasm-5.0.5 lib/generators/active_record/templates/migration.rb
aasm-5.0.4 lib/generators/active_record/templates/migration.rb
aasm-5.0.3 lib/generators/active_record/templates/migration.rb
aasm-5.0.2 lib/generators/active_record/templates/migration.rb
aasm-5.0.1 lib/generators/active_record/templates/migration.rb
aasm-5.0.0 lib/generators/active_record/templates/migration.rb
aasm-4.12.3 lib/generators/active_record/templates/migration.rb
aasm-4.12.2 lib/generators/active_record/templates/migration.rb
aasm-4.12.1 lib/generators/active_record/templates/migration.rb