Sha256: 0f9e3fdfab0922c144e1201ef1b081ef382ced39bb9c98a66d05749c790a170a

Contents?: true

Size: 210 Bytes

Versions: 11

Compression:

Stored size: 210 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= Rails.version =~ /^4\.2\.*/ ? "" : "[5.0]" %>

  def change
    create_enum :<%=file_name%><%= ", description: true" if @description %>
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
power_enum-4.0.1 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-4.0.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.7.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.6.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.5.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.4.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.3.1 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.3.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.2.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.1.0 lib/generators/enum/templates/rails31_migration.rb.erb
power_enum-3.0.1 lib/generators/enum/templates/rails31_migration.rb.erb