diff --git a/app/models/user.rb b/app/models/user.rb index 9444c82fdd8..56277bd34d5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,4 @@ class User < ApplicationRecord - self.ignored_columns = %w[encrypted_phone totp_timestamp] include NonNullUuid include ::NewRelic::Agent::MethodTracer diff --git a/db/primary_migrate/20220705195340_drop_encrypted_phone_from_users.rb b/db/primary_migrate/20220705195340_drop_encrypted_phone_from_users.rb new file mode 100644 index 00000000000..5e3c81a66b5 --- /dev/null +++ b/db/primary_migrate/20220705195340_drop_encrypted_phone_from_users.rb @@ -0,0 +1,5 @@ +class DropEncryptedPhoneFromUsers < ActiveRecord::Migration[6.1] + def change + safety_assured { remove_column :users, :encrypted_phone, :string } + end +end diff --git a/db/schema.rb b/db/schema.rb index 246054d30db..4703c1b34fd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_06_22_232047) do +ActiveRecord::Schema.define(version: 2022_07_05_200821) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" @@ -591,9 +591,7 @@ t.string "direct_otp" t.datetime "direct_otp_sent_at" t.string "unique_session_id" - t.text "encrypted_phone" t.integer "otp_delivery_preference", default: 0, null: false - t.integer "totp_timestamp" t.string "encrypted_password_digest", default: "" t.string "encrypted_recovery_code_digest", default: "" t.datetime "remember_device_revoked_at"