【发布时间】:2012-08-17 10:05:17
【问题描述】:
可能重复:
NOTICES for sequence after running migration in rails on postgresql Application
将 PostgreSQL 用于开发和测试数据库(以及生产)。当我 rake db:test:prepare 我的 PostgreSQL theapp_test 数据库时,我会收到每个表的这些消息:
NOTICE: CREATE TABLE will create implicit sequence "events_id_seq" for serial column "events.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "events_pkey" for table "events"
NOTICE: CREATE TABLE will create implicit sequence "users_id_seq" for serial column "users.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "users_pkey" for table "users"
...
我在theapp_development 上没有收到rake db:migrate 的这些通知。而且我还没有在生产中注意到它们。这是什么意思,我应该努力摆脱它们吗?
仅供参考 - 过去我使用 MySQL(或 SQLite3)进行测试时不会发生这种情况......
【问题讨论】:
-
-1,因为它与通过搜索错误消息在相同标签中轻松找到的问题重复。
-
我在发帖前搜索了 3 种不同的方式。一定错过了。对不起。发生。
-
@Meltemi np,对不起。值得一提的是您在帖子中尝试/查看的内容。 -0.
标签: ruby-on-rails postgresql migration database-migration