Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rails no migration with version number

rake db:migrate:status 
# returns something like
# up 20200424185017 migration name
# up 20200507195924 ********** NO FILE **********

rake db:migrate:down VERSION=x
# x = version number you want to migrate to, in this case it would probably be 20200424185017 
 
PREVIOUS NEXT
Tagged: #rails #migration #version #number
ADD COMMENT
Topic
Name
5+2 =