summaryrefslogtreecommitdiff
path: root/db/migrate/20140424202626_create_brackets.rb
blob: 8813bf2882a2a114e54958561dbaf296af2e5c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateBrackets < ActiveRecord::Migration
  def change
    create_table :brackets do |t|
      t.references :user, index: true
      t.references :tournament, index: true
      t.string :name

      t.timestamps
    end
  end
end