From 8e8e773e65e2110fc6070bd717174c0d2ae76915 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Thu, 24 Nov 2022 14:08:39 +0100 Subject: [PATCH] FIX: Use `default_enabled` for badges (#212) because `enabled` in Badge.seed will always overwrite changes by admins --- .discourse-compatibility | 1 + db/fixtures/001_badges.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.discourse-compatibility b/.discourse-compatibility index 259d51c..f3a00d5 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -1,3 +1,4 @@ +2.9.0.beta11: 882dd61e11f9bab8e99510296938b0cdbc3269c4 2.9.0.beta1: e6cce5486df906ede74aa1b17ab308a145a99b88 2.8.0.beta9: 4cf4b41c4e2c85b07da5d29353371a7593cac735 2.8.0.beta3: 13168027eb6f4cb2f9532fe9820b3f1284f37fcf diff --git a/db/fixtures/001_badges.rb b/db/fixtures/001_badges.rb index 7052acd..4bd6abe 100644 --- a/db/fixtures/001_badges.rb +++ b/db/fixtures/001_badges.rb @@ -23,7 +23,7 @@ Badge.seed(:name) do |badge| badge.query = first_solution_query badge.listable = true badge.target_posts = true - badge.enabled = false + badge.default_enabled = false badge.trigger = Badge::Trigger::PostRevision badge.auto_revoke = true badge.show_posts = true @@ -58,7 +58,7 @@ end badge.listable = true badge.default_allow_title = true badge.target_posts = false - badge.enabled = false + badge.default_enabled = false badge.trigger = Badge::Trigger::PostRevision badge.auto_revoke = true badge.show_posts = false