Fix association
This commit is contained in:
parent
bdb597d95e
commit
8655343382
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
class Party < ApplicationRecord
|
class Party < ApplicationRecord
|
||||||
##### ActiveRecord Associations
|
##### ActiveRecord Associations
|
||||||
belongs_to :user, optional: true
|
belongs_to :user, optional: true
|
||||||
has_many :weapons, through: :grid_weapons
|
has_many :weapons, foreign_key: "party_id", class_name: "GridWeapon"
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue