Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
influencer = Influencer.create!(name: 'taylorSwift')
100.times do |i|
fan = Fan.create!(name: i.to_s)
FanInfluencer.create!(fan_id: fan.id, influencer_id: influencer.id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment