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:
parent
1f83c6ace5
commit
ed5f274c46
2 changed files with 11 additions and 11 deletions
|
@ -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
|
|
|
@ -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
|
Loading…
Reference in a new issue