Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20221008032350_add_password_expiration_migration.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7dbc73294bbd77e478c8c07bb44cea39de499668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class AddPasswordExpirationMigration < Gitlab::Database::Migration[2.0]
  def change
    add_column :application_settings, :password_expiration_enabled, :boolean, default: false, null: false,
                                                                              comment: 'JiHu-specific column'
    add_column :application_settings, :password_expires_in_days, :integer, default: 90, null: false,
                                                                           comment: 'JiHu-specific column'
    add_column :application_settings, :password_expires_notice_before_days, :integer, default: 7, null: false,
                                                                                      comment: 'JiHu-specific column'
  end
end