1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Move to post migrate

This commit is contained in:
Matt Jankowski 2024-05-02 16:17:45 -04:00
parent db1c4a8899
commit 79d556eeb8
2 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -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