undefined method `relation’ for nil:NilClass on Heroku
I host almost 100% of my open source projects on Heroku, it’s amazing how easy it is to setup and how “out-of-your-way” they are.
Today, while working on one of my open source project I encountered this error:
It was right after I deployed and migrated the database.
After about 5 minutes of head scratching I came across an answer on stackoverflow saying you have to restart your app after a migration for it to pick up on schema changes.
Had a DAH! moment thereSubmit to Hacker News
[NOTE] This post has been imported to Hugo from a Wordpress blog. It may be broken, missing images, code snippets or other information.
[NOTE] updated May 9, 2012. It's 2379 days old . This article may have outdated content.