Inference is better than specific, in case the model changes
By using id
and user_id
explicitly you can cause issues in case you change those field names. Use the interference ability of ActiveRecord.
By using id
and user_id
explicitly you can cause issues in case you change those field names. Use the interference ability of ActiveRecord.