Fix association

This commit is contained in:
Justin Edmund 2020-09-16 23:48:10 -07:00
parent bdb597d95e
commit 8655343382

View file

@ -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