It is beyond anything you have ever experienced or imagined
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.
| Print article | This entry was posted by Daniel X Moore on July 8, 2010 at 9:35 am, and is filed under Programming. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |