简体   繁体   English

Heroku耙db:migrate

[英]Heroku rake db:migrate

when I run heroku rake db:migrate I keep getting: 当我运行heroku rake db:migrate时,我不断得到:

Migrating to CreateUsers (20110216103237)
==  CreateUsers: migrating ====================================================
-- create_table(:users)

even though the Users table has already been created before. 即使之前已经创建了Users表。 does anyone know why this might be occurring? 有谁知道为什么会这样?

thanks 谢谢

I think you may have changed the database name in the database.yml file or you may have accidently deleted the last entry in schema_migrations table. 我认为您可能已经更改了database.yml文件中的数据库名称,或者您不小心删除了schema_migrations表中的最后一个条目。 Or maybe you did a rake db:rollback . 或者,也许您做了rake db:rollback

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM