parent
eeb16d7e09
commit
c8c6c7701d
@ -0,0 +1,4 @@
|
||||
class CompetitionManager < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :competition
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
class CreateCompetitionManagers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :competition_managers do |t|
|
||||
t.references :user
|
||||
t.references :competition
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue