开发者

Migration File name starting at weird number

开发者 https://www.devze.com 2023-03-29 00:38 出处:网络
Recently, after I deleted some manually created migrations that were named 99999999xxx_createwhatever, each migration I generate now start with 99999999999999xxx_etc

Recently, after I deleted some manually created migrations that were named 99999999xxx_createwhatever, each migration I generate now start with 99999999999999xxx_etc

Any idea how to fix this so that they are gene开发者_高级运维rated like 2011xxxxxx again?


If you want to keep your data in database, use mysqldump to backup first.

Then reset your migration to version 0 rake db:migrate VERSION=0

Make sure there isn't any 99999999x migration file, then run rake db:migrate

Finally, restore your database.

0

精彩评论

暂无评论...
验证码 换一张
取 消