Created
October 28, 2011 00:35
-
-
Save Solnse/1321306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddCategoryToFoodItems < ActiveRecord::Migration | |
def change | |
add_column :food_items, :string, :category | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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