mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-23 15:28:23 -04:00
Passing class_name as string in members.requested_crops
This commit is contained in:
1 parent
2e339ce45d
commit
7cda0aacc5
1 file changed
+1
-1
@@ -20,7 +20,7 @@ class Member < ApplicationRecord
|
||||
has_many :sent_notifications, foreign_key: 'sender_id'
|
||||
has_many :authentications
|
||||
has_many :photos
|
||||
has_many :requested_crops, class_name: Crop, foreign_key: 'requester_id'
|
||||
has_many :requested_crops, class_name: 'Crop', foreign_key: 'requester_id'
|
||||
has_many :likes, dependent: :destroy
|
||||
has_many :follows, class_name: "Follow", foreign_key: "follower_id", dependent: :destroy
|
||||
has_many :inverse_follows, class_name: "Follow", foreign_key: "followed_id", dependent: :destroy
|
||||
|
||||
Reference in new issue
Block a user