当我在PostgreSQL上运行我的Rails应用程序的迁移时,我收到以下通知:
NOTICE: CREATE TABLE will create implicit sequence "notification_settings_id_seq" for serial column "notification_settings.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "notification_settings_pkey" for table "notification_settings"
我的迁移文件包含088_create_notification_settings.rb
。class CreateNotificationSettings < ActiveRecord::Migration
def self.up
create_table :notification_settings do |t|
t.integer :user_id
t.integer :notification_id
t.boolean :notification_on
t.boolean :outbound
end
end
def self.down
drop_table :notification_settings
end
end
我想知道
这些 NOTICES 是什么意思?
如何避免这些 NOTICES?
如果不避免这些 NOTICES,对应用程序会有什么影响?
谢谢,
Salil
client_min_messages = warning
,database.yml设置似乎无效。 - westondatabase.yml
中尝试了什么?据我所知,它应该仍然有效,但我没有设置9.2来检查。 - mu is too short