Add favorites model
This commit is contained in:
parent
25b12b10c4
commit
b2adbd0400
1 changed files with 7 additions and 0 deletions
7
app/models/favorite.rb
Normal file
7
app/models/favorite.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Favorite < ApplicationRecord
|
||||
belongs_to :user
|
||||
|
||||
def party
|
||||
Party.find(self.party_id)
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue