Wassim Metallaoui


1,620 Experience
16 Lessons Completed
0 Questions Solved


I see what I was doing wrong. How would you go about making it so an account has_many users but the account.user_id gets set on the first user who made the account?

How is the user_id on the account table being set?

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.