I changed these attr names in the model to make them more self explanatory. Also, PostgreSQL uses both "date " and "user" as reserved keywords and this can lead to unexpected errors when deploying in Heroku (at least it did like 2 yrs ago, trust me. The hardest bug I've debugged in my life was related to this)