Add Tournament model

This commit is contained in:
Thor77 2018-11-11 21:31:47 +01:00
parent 821c40c35c
commit c9421e6d42
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
2 changed files with 13 additions and 0 deletions

4
app/models/tournament.rb Normal file
View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
class Tournament < ApplicationRecord
end

View File

@ -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'