DEV: resolve on conflict (#25847)

This commit is contained in:
Jeff Wong
2024-02-26 10:03:51 -08:00
committed by GitHub
parent b5d4e06de7
commit e440996aca

View File

@@ -12,7 +12,8 @@ class FillEmbeddedMediaPostAllowedGroupsBasedOnDeprecatedSetting < ActiveRecord:
DB.exec(
"INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
VALUES('embedded_media_post_allowed_groups', :setting, '20', NOW(), NOW())",
VALUES('embedded_media_post_allowed_groups', :setting, '20', NOW(), NOW())
ON CONFLICT (name) DO NOTHING",
setting: allowed_groups,
)
end