-
-
Save brunomichetti/80ae491541279a0ecff19106def5103d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Influencer < ApplicationRecord | |
has_many :fan_influencers | |
has_many :fans, through: :fan_influencers | |
end | |
class Fan < ApplicationRecord | |
has_many :fan_influencers | |
end | |
class FanInfluencer < ApplicationRecord | |
belongs_to :fan | |
belongs_to :influencer | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment