Commit 8de2074d authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '320970-fix-migration-to-enable-ssh-key-expiration-enforcement' into 'master'

Fix migration for SSH key expiration enforcement

See merge request gitlab-org/gitlab!64124
parents 93679aa4 5df1166f
......@@ -8,7 +8,7 @@ class EnableEnforceSshKeyExpiration < ActiveRecord::Migration[6.0]
def up
ApplicationSetting.reset_column_information
ApplicationSetting.where.not(enforce_ssh_key_expiration: false).each do |application_setting|
ApplicationSetting.where.not(enforce_ssh_key_expiration: true).each do |application_setting|
application_setting.update!(enforce_ssh_key_expiration: true)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment