debian-mirror-gitlab/db/migrate/20191123062354_add_minimum_password_length_to_application_settings.rb
2020-01-01 13:55:28 +05:30

12 lines
325 B
Ruby

# frozen_string_literal: true
class AddMinimumPasswordLengthToApplicationSettings < ActiveRecord::Migration[5.2]
DOWNTIME = false
DEFAULT_MINIMUM_PASSWORD_LENGTH = 8
def change
add_column(:application_settings, :minimum_password_length, :integer, default: DEFAULT_MINIMUM_PASSWORD_LENGTH, null: false)
end
end