OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20210915154656_add_user_pre...

19 lines
630 B

class AddUserPreferenceSettingsIndices < ActiveRecord::Migration[6.1]
def change
add_index :user_preferences,
"(settings->'daily_reminders'->'enabled')",
using: :gin,
name: 'index_user_prefs_settings_daily_reminders_enabled'
add_index :user_preferences,
"(settings->'daily_reminders'->'times')",
using: :gin,
name: 'index_user_prefs_settings_daily_reminders_times'
add_index :user_preferences,
"(settings->'time_zone')",
using: :gin,
name: 'index_user_prefs_settings_time_zone'
end
end