I started getting an error in the schema.rb file when i ran this migration below. I was following a tutorial for UUID (tutorial) and I'm not sure if this was right. I have it working fine but i cant see the table in the schema.rb file and i cant run rake db:rollback.
class AddUuidToUsers < ActiveRecord::Migration
def up
add_column :users, :uuid, :uuid
end
def down
remove_column :users, :uuid
end
end
This is the error when i run rake db:rollback
undefined method `to_sym' for nil:NilClass/Applications/MAMP/htdocs/Sites/ubergradd/db/migrate/20141024175231_add_uuid_to_users.rb:7:in `down'
NoMethodError: undefined method `to_sym' for nil:NilClass
/Applications/MAMP/htdocs/Sites/ubergradd/db/migrate/20141024175231_add_uuid_to_users.rb:7:in `down'
In my schema.rb file
# Could not dump table "users" because of following NoMethodError
# undefined method `[]' for nil:NilClass