Add favorites model

This commit is contained in:
Justin Edmund 2022-02-27 19:04:51 -08:00
parent 25b12b10c4
commit b2adbd0400

7
app/models/favorite.rb Normal file
View file

@ -0,0 +1,7 @@
class Favorite < ApplicationRecord
belongs_to :user
def party
Party.find(self.party_id)
end
end