Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class User < ApplicationRecord
self.ignored_columns = %w[encrypted_phone totp_timestamp]
self.ignored_columns = %w[totp_timestamp]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also drop this 😬

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean drop the totp_timestamp column?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, I guess it's already ignored, so may as well drop it 🤷

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done: cee064c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's been ignored for...2.5 years so I think we're good 😀

include NonNullUuid

include ::NewRelic::Agent::MethodTracer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropEncryptedPhoneFromUsers < ActiveRecord::Migration[6.1]
def change
safety_assured { remove_column :users, :encrypted_phone, :string }
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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_195340) do

# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
Expand Down Expand Up @@ -591,7 +591,6 @@
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: ""
Expand Down