0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 23:04:22 +08:00
discourse/db/migrate/20260714152340_add_settings_to_admin_dashboard_sections.rb
Osama Sayegh abcda0f58a
FEATURE: Persist "Activity by category" dashboard filter selection (#41758)
Admins can choose which categories appear in the admin dashboard's
"Activity by category" section. That choice now sticks for everyone
across refreshes instead of resetting to the defaults on each visit.

The selection is stored through a generic per-section settings storage
system. Any dashboard section can declare the settings it supports, so
future section configuration and filters can reuse the same storage,
endpoint, and validation without new plumbing.
2026-07-17 10:54:28 +03:00

6 lines
212 B
Ruby
Vendored

# frozen_string_literal: true
class AddSettingsToAdminDashboardSections < ActiveRecord::Migration[8.0]
def change
add_column :admin_dashboard_sections, :settings, :jsonb, null: false, default: {}
end
end