summaryrefslogtreecommitdiff
path: root/db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb')
-rw-r--r--db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb b/db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb
deleted file mode 100644
index c164183fbf8..00000000000
--- a/db/migrate/20210531071107_enable_enforce_ssh_key_expiration.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# frozen_string_literal: true
-
-class EnableEnforceSshKeyExpiration < ActiveRecord::Migration[6.0]
- class ApplicationSetting < ActiveRecord::Base
- self.table_name = 'application_settings'
- end
-
- def up
- ApplicationSetting.reset_column_information
-
- ApplicationSetting.where.not(enforce_ssh_key_expiration: true).each do |application_setting|
- application_setting.update!(enforce_ssh_key_expiration: true)
- end
- end
-end