summaryrefslogtreecommitdiff
path: root/db/migrate/20140307023519_create_scores.rb
blob: 4ca0b0b6d78304e99075793300950c43c6340cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateScores < ActiveRecord::Migration
  def change
    create_table :scores do |t|
      t.references :user, index: true
      t.references :match, index: true
      t.integer :value

      t.timestamps
    end
  end
end