From ed5f274c469fdd8e9f16d9040833ea47f359e2f8 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 2 May 2024 16:17:45 -0400 Subject: [PATCH] Move to post migrate --- ...ove_legacy_devise_two_factor_secrets_from_users.rb | 11 ----------- ...ove_legacy_devise_two_factor_secrets_from_users.rb | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 db/migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb create mode 100644 db/post_migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb diff --git a/db/migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb b/db/migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb deleted file mode 100644 index b5a4cae5926..00000000000 --- a/db/migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -class RemoveLegacyDeviseTwoFactorSecretsFromUsers < ActiveRecord::Migration[7.1] - def change - safety_assured do - remove_column :users, :encrypted_otp_secret - remove_column :users, :encrypted_otp_secret_iv - remove_column :users, :encrypted_otp_secret_salt - end - end -end diff --git a/db/post_migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb b/db/post_migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb new file mode 100644 index 00000000000..b883bd2b28d --- /dev/null +++ b/db/post_migrate/20240502192024_remove_legacy_devise_two_factor_secrets_from_users.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class RemoveLegacyDeviseTwoFactorSecretsFromUsers < ActiveRecord::Migration[7.1] + def change + safety_assured do + remove_column :users, :encrypted_otp_secret, :string + remove_column :users, :encrypted_otp_secret_iv, :string + remove_column :users, :encrypted_otp_secret_salt, :string + end + end +end