summaryrefslogtreecommitdiff
path: root/db/post_migrate/20221013154159_update_invalid_dormant_user_setting.rb
blob: 1f1e47fdac113ba526749abe89a4d857bef1205b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class UpdateInvalidDormantUserSetting < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  # rubocop:disable Layout/LineLength
  def up
    execute("update application_settings set deactivate_dormant_users_period=90 where deactivate_dormant_users_period < 90")
  end
  # rubocop:enable Layout/LineLength

  def down
    # no-op
  end
end