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
|
||||
##### ActiveRecord Associations
|
||||
belongs_to :user, optional: true
|
||||
has_many :weapons, through: :grid_weapons
|
||||
end
|
||||
has_many :weapons, foreign_key: "party_id", class_name: "GridWeapon"
|
||||
end
|
||||
Loading…
Reference in a new issue