我正在使用 Rails 6,最近写了一个小迁移来向表中添加一列。简单的东西:
class AddInstagramUsernameToUsers < ActiveRecord::Migration[6.0]
def change
add_column :users, :instagram_username, :string
end
end
但注意到当我运行迁移时,我看到在我的 structure.sql 中添加了以下行:
SET xmloption = content;
我并不特别担心它,(诚然,描述该选项的文档使它看起来非常无害)但不想让这么小的迁移改变任何元 postgres 的东西。我尝试降级到 Rails 5 以摆脱这条线,但没有运气。我使用的是 postgres 10.8 版,最近没有升级。
目前我不知道是什么添加了这条线,如果可能的话,我想摆脱它。有谁知道是什么原因造成的/如何预防?