Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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