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/20210928133538_add_reminder...

16 lines
406 B

require_relative './migration_utils/utils'
class AddReminderWorkdays < ActiveRecord::Migration[6.1]
include ::Migration::Utils
def up
add_index :user_preferences,
"(settings->'workdays')",
using: :gin,
name: :index_user_prefs_settings_workdays
end
def down
remove_index_if_exists :user_preferences, :index_user_prefs_settings_workdays
end
end