Rails: "500 – Internal server error" caused by error in application.rb

Today, while working on my Ruby on Rails project, I got a “500 – Internal server error” page soon after I tried to run the project after running a migration. There was nothing else on the screen except for that one line.
I tried a few things, like restarting NetBeans, and opening another project to see [...]