DEV: Add conflict resolution to migration min trust level for here mention to group [stable] (#25668)

This commit is contained in:
Jeff Wong 2024-02-13 17:19:22 -08:00 committed by GitHub
parent b750485f62
commit 92749b7384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,7 @@ class MigrateMinTrustLevelForHereMentionToGroup < ActiveRecord::Migration[7.0]
DB.exec(<<~SQL, setting: here_mention_allowed_groups)
INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
VALUES('here_mention_allowed_groups', :setting, 20, NOW(), NOW())
ON CONFLICT (name) DO NOTHING
SQL
end
end