I am doing the Rails for Zombie 2 course. I have created a Zombies table with several columns, one of which is 'age' of type integer.
I run these two command:
rails g migration RemoveAgeFromZombies age:integer
rake db:migrate
After that, when I try, for example, to index the zombies, I get a NoMethodError, related to the age column:
undefined method
age' for # Zombie:0x356c700>`
Does that mean that mean that when I remove a column from a table, I need to go and manually remove the code from all files, which reference it?