mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added logic to delegate tournament access
This commit is contained in:
10
db/migrate/20160106025920_create_tournament_delegates.rb
Normal file
10
db/migrate/20160106025920_create_tournament_delegates.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateTournamentDelegates < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :tournament_delegates do |t|
|
||||
t.integer :user_id
|
||||
t.integer :tournament_id
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/migrate/20160106031418_create_school_delegates.rb
Normal file
10
db/migrate/20160106031418_create_school_delegates.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateSchoolDelegates < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :school_delegates do |t|
|
||||
t.integer :user_id
|
||||
t.integer :school_id
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user