diff --git a/app/models/phone_configuration.rb b/app/models/phone_configuration.rb index 7d57544049d..97766c6b3de 100644 --- a/app/models/phone_configuration.rb +++ b/app/models/phone_configuration.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true class PhoneConfiguration < ApplicationRecord - self.ignored_columns += %w[confirmation_sent_at] include EncryptableAttribute belongs_to :user, inverse_of: :phone_configurations diff --git a/app/models/user.rb b/app/models/user.rb index 215c9bd7f94..508b2113f18 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true class User < ApplicationRecord - self.ignored_columns += %w[phone_confirmed_at] include NonNullUuid include ActionView::Helpers::DateHelper diff --git a/db/primary_migrate/20250321182247_remove_phone_confirmed_at_from_users.rb b/db/primary_migrate/20250321182247_remove_phone_confirmed_at_from_users.rb new file mode 100644 index 00000000000..4a5cdb0efc9 --- /dev/null +++ b/db/primary_migrate/20250321182247_remove_phone_confirmed_at_from_users.rb @@ -0,0 +1,5 @@ +class RemovePhoneConfirmedAtFromUsers < ActiveRecord::Migration[8.0] + def change + safety_assured { remove_column :users, :phone_confirmed_at, :datetime } + end +end diff --git a/db/primary_migrate/20250321182616_remove_phone_confirmation_config.rb b/db/primary_migrate/20250321182616_remove_phone_confirmation_config.rb new file mode 100644 index 00000000000..477ac41aac3 --- /dev/null +++ b/db/primary_migrate/20250321182616_remove_phone_confirmation_config.rb @@ -0,0 +1,5 @@ +class RemovePhoneConfirmationConfig < ActiveRecord::Migration[8.0] + def change + safety_assured { remove_column :phone_configurations, :confirmation_sent_at, :datetime } + end +end diff --git a/db/schema.rb b/db/schema.rb index d6ac988b823..4e65a770b58 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -416,7 +416,6 @@ t.text "encrypted_phone", null: false, comment: "sensitive=true" t.integer "delivery_preference", default: 0, null: false, comment: "sensitive=false" t.boolean "mfa_enabled", default: true, null: false, comment: "sensitive=false" - t.datetime "confirmation_sent_at", precision: nil, comment: "sensitive=false" t.datetime "confirmed_at", precision: nil, comment: "sensitive=false" t.datetime "created_at", precision: nil, null: false, comment: "sensitive=false" t.datetime "updated_at", precision: nil, null: false, comment: "sensitive=false" @@ -623,7 +622,6 @@ t.integer "second_factor_attempts_count", default: 0, comment: "sensitive=false" t.string "uuid", limit: 255, null: false, comment: "sensitive=false" t.datetime "second_factor_locked_at", precision: nil, comment: "sensitive=false" - t.datetime "phone_confirmed_at", precision: nil, comment: "sensitive=false" t.string "direct_otp", comment: "sensitive=true" t.datetime "direct_otp_sent_at", precision: nil, comment: "sensitive=false" t.string "unique_session_id", comment: "sensitive=false"