gpt4 book ai didi

ruby-on-rails - Rails (PostgreSQL?) 隐式序列/索引警告

转载 作者:行者123 更新时间:2023-11-29 11:30:30 27 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
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)进行测试时不会发生这种情况......

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com