diff --git a/app/models/party.rb b/app/models/party.rb index f0335c8..bdb7587 100644 --- a/app/models/party.rb +++ b/app/models/party.rb @@ -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 \ No newline at end of file