Rails Migration undefined method `type=’ for nil:NilClass

Just wanted to share a quick tip about an error I ran into. When running a Rails migration and changing a column that doesn’t exist, you’ll get an undefined method `type=' for nil:NilClass error. The cause for me was that I had used change_column on login, which my table didn’t have instead of email, which my table did.

2 thoughts on “Rails Migration undefined method `type=’ for nil:NilClass

Leave a Reply

Your email address will not be published. Required fields are marked *