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

20191123062354_add_minimum_password_length_to_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a7ad9d81a9ac752914ae629829e399c99b3fe77 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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