Add associations to Party
This commit is contained in:
parent
a53d350c8f
commit
25ba612742
1 changed files with 3 additions and 0 deletions
|
|
@ -1,2 +1,5 @@
|
|||
class Party < ApplicationRecord
|
||||
##### ActiveRecord Associations
|
||||
belongs_to :user, optional: true
|
||||
has_many :weapons, through: :grid_weapons
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue