Sha256: b975412b45cd21b08d3a968ff14ad06e5d04e909e48e20d5182d2708414960a6

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

class CreateScoresAndPoints < ActiveRecord::Migration
  def change
    create_table :merit_scores do |t|
      t.references :sash
      t.string :category, default: 'default'
    end

    create_table :merit_score_points do |t|
      t.references :score
      t.integer :num_points, default: 0
      t.string :log
      t.datetime :created_at
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
merit-3.0.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.4.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.3.4 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.3.3 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.3.2 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.3.1 lib/generators/active_record/templates/create_scores_and_points.rb
merit-2.3.0 lib/generators/active_record/templates/create_scores_and_points.rb