Wassim Metallaoui

Joined

1,520 Experience
15 Lessons Completed
0 Questions Solved

Activity

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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.