From 25ba6127422f44f2e320d834316b567ccf38fb0d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 16 Sep 2020 03:43:30 -0700 Subject: [PATCH] Add associations to Party --- app/models/party.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/party.rb b/app/models/party.rb index bfc74ef..f0335c8 100644 --- a/app/models/party.rb +++ b/app/models/party.rb @@ -1,2 +1,5 @@ class Party < ApplicationRecord +##### ActiveRecord Associations + belongs_to :user, optional: true + has_many :weapons, through: :grid_weapons end