Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行rake db:structure:load,但在加载所有结构后,它无法在 schema_migrations 中插入版本。
rake db:structure:load
看起来 PostgreSQL 不知道最近创建的表。已经用谷歌搜索了,但没有发现任何有用的东西。
您是否更改或删除了任何迁移?
反正。您可以查看 postgres 控制台并尝试:
获取所有数据库的列表(找到你的)
\list
在那之后
\c yourdatabasename_yourenvironment
和
\dt
查看 postgres 数据库中的所有表。