diff --git a/db/migrate/20231107055903_migrate_min_trust_level_for_here_mention_to_group.rb b/db/migrate/20231107055903_migrate_min_trust_level_for_here_mention_to_group.rb index ff7cafac689..8be4ecbc522 100644 --- a/db/migrate/20231107055903_migrate_min_trust_level_for_here_mention_to_group.rb +++ b/db/migrate/20231107055903_migrate_min_trust_level_for_here_mention_to_group.rb @@ -25,6 +25,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