Sha256: 12eb1a33a1530deb59577556fe5109e5e7d9d060377f67d28e9416f2a0d39c23

Contents?: true

Size: 245 Bytes

Versions: 7

Compression:

Stored size: 245 Bytes

Contents

class AddMeritFieldsTo<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %>
  def change
    add_column :<%= table_name %>, :sash_id, :integer
    add_column :<%= table_name %>, :level,   :integer, :default => 0
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
merit-4.0.3 lib/merit/generators/active_record/templates/add_merit_fields_to_model.erb
merit-4.0.2 lib/merit/generators/active_record/templates/add_merit_fields_to_model.erb
merit-4.0.1 lib/merit/generators/active_record/templates/add_merit_fields_to_model.erb
merit-4.0.0 lib/merit/generators/active_record/templates/add_merit_fields_to_model.erb
merit-3.0.3 lib/generators/active_record/templates/add_merit_fields_to_model.rb
merit-3.0.2 lib/generators/active_record/templates/add_merit_fields_to_model.rb
merit-3.0.1 lib/generators/active_record/templates/add_merit_fields_to_model.rb