Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails rollback a migration

rake db:rollback STEP=1 #mention the number of migrations to rollback in STEP
# OR
rake db:migrate VERSION=20100905201547 # migration version
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #rollback #migration
ADD COMMENT
Topic
Name
5+5 =