Rails migration not seeming to work? Accidentally named a column "type",
ran a migration but receiving error
So I accidentally named a column in my Item model "type" and I wrote a
migration to rename it.
class RenameTypeToTagged < ActiveRecord::Migration
def up rename_column :items, :type, :tagged end
def down end end
When I restart the server, and rake db:migrate it still spits back "Can't
mass-assign protected attributes: type". I've renamed the attr_accesible
in the Item model by hand but it doesn't seem to resolve. any ideas?
thanks
No comments:
Post a Comment