debian-mirror-gitlab/db/migrate/20221008032350_add_password_expiration_migration.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
780 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# 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