Building off this question, How to implement an achievement system in RoR would I have a user_id column in my Achievement table?
Building off this question, How to implement an achievement system in RoR would I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are using the accepted answer way of doing this, then yes, you would have a user_id in your achievements table. You can tell this because in the Achievements model, it has:
If you were generating the achievements model through a rails generator, it would look like this:
Where ….. is the other fields in the achievement model.