Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/models/phone_configuration.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

class User < ApplicationRecord
self.ignored_columns += %w[phone_confirmed_at]
include NonNullUuid

include ActionView::Helpers::DateHelper
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemovePhoneConfirmedAtFromUsers < ActiveRecord::Migration[8.0]
def change
safety_assured { remove_column :users, :phone_confirmed_at, :datetime }
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemovePhoneConfirmationConfig < ActiveRecord::Migration[8.0]
def change
safety_assured { remove_column :phone_configurations, :confirmation_sent_at, :datetime }
end
end
2 changes: 0 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down