Add unique index to tournament code
This commit is contained in:
parent
7e16384db3
commit
683423b06a
|
|
@ -48,6 +48,8 @@ class CreateSchema < ActiveRecord::Migration[5.2]
|
|||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :tournaments, :code, unique: true
|
||||
|
||||
create_table :users do |t|
|
||||
## Required
|
||||
t.string :provider, null: false, default: 'email'
|
||||
|
|
|
|||
Loading…
Reference in New Issue