diff --git a/app/models/party.rb b/app/models/party.rb index a9a0e23..f11eebc 100644 --- a/app/models/party.rb +++ b/app/models/party.rb @@ -1,6 +1,7 @@ class Party < ApplicationRecord ##### ActiveRecord Associations belongs_to :user, optional: true + belongs_to :raid, optional: true has_many :characters, foreign_key: "party_id", class_name: "GridCharacter", dependent: :destroy has_many :weapons, foreign_key: "party_id", class_name: "GridWeapon", dependent: :destroy has_many :summons, foreign_key: "party_id", class_name: "GridSummon", dependent: :destroy diff --git a/app/models/raid.rb b/app/models/raid.rb new file mode 100644 index 0000000..c1065ee --- /dev/null +++ b/app/models/raid.rb @@ -0,0 +1,2 @@ +class Raid < ApplicationRecord +end