Add Tournament model
This commit is contained in:
parent
821c40c35c
commit
c9421e6d42
|
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Tournament < ApplicationRecord
|
||||
end
|
||||
|
|
@ -39,6 +39,15 @@ class CreateSchema < ActiveRecord::Migration[5.2]
|
|||
t.timestamps
|
||||
end
|
||||
|
||||
create_table :tournaments do |t|
|
||||
t.string :name
|
||||
t.string :code
|
||||
t.string :description
|
||||
t.boolean :public, default: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
create_table :users do |t|
|
||||
## Required
|
||||
t.string :provider, null: false, default: 'email'
|
||||
|
|
|
|||
Loading…
Reference in New Issue