A platform for community discussion. Free, open, simple.
UX: makes rewind private by default (#36717)
Joffrey JAFFEUX07e797fc4131
diff --git a/plugins/discourse-rewind/db/migrate/20251216094828_change_discourse_rewind_share_publicly_default_to_false.rb b/plugins/discourse-rewind/db/migrate/20251216094828_change_discourse_rewind_share_publicly_default_to_false.rbnew file mode 100644index 00000000000..279ac39b2fe--- /dev/null+++ b/plugins/discourse-rewind/db/migrate/20251216094828_change_discourse_rewind_share_publicly_default_to_false.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true++class ChangeDiscourseRewindSharePubliclyDefaultToFalse < ActiveRecord::Migration[7.2]+ def up+ change_column_default :user_options, :discourse_rewind_share_publicly, false+ execute "UPDATE user_options SET discourse_rewind_share_publicly = false"+ end++ def down+ change_column_default :user_options, :discourse_rewind_share_publicly, true+ execute "UPDATE user_options SET discourse_rewind_share_publicly = true"+ end+end