Skip to content

Instantly share code, notes, and snippets.

@Solnse
Created October 28, 2011 00:35
Show Gist options
  • Save Solnse/1321306 to your computer and use it in GitHub Desktop.
Save Solnse/1321306 to your computer and use it in GitHub Desktop.
class AddCategoryToFoodItems < ActiveRecord::Migration
def change
add_column :food_items, :string, :category
end
end
$ bundle exec rake db:rollback STEP=1
== AddCategoryToFoodItems: reverting =========================================
-- remove_column("food_items", :string)
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `to_sym' for nil:NilClass
Tasks: TOP => db:rollback
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment