Add Position to Match in Database

This commit is contained in:
Daniel Schädler 2018-11-29 10:42:49 +01:00
parent a6bf253270
commit fd02a1ecaf
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class CreateSchema < ActiveRecord::Migration[5.2]
create_table :matches do |t|
t.integer :state, default: 0
t.integer :position
t.belongs_to :stage, index: true, foreign_key: { on_delete: :cascade }
t.belongs_to :group, index: true, foreign_key: { on_delete: :cascade }