summaryrefslogtreecommitdiff
path: root/db/migrate/20140427171622_create_statistics.rb
blob: cc2e97d6d22db3236370f115dc3f3ccfb84de2af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateStatistics < ActiveRecord::Migration
  def change
    create_table :statistics do |t|
      t.references :user, index: true
      t.references :match, index: true
      t.string :name
      t.integer :value

      t.timestamps
    end
  end
end