diff --git a/db/primary_migrate/20230206183539_drop_otp_requests_trackers.rb b/db/primary_migrate/20230206183539_drop_otp_requests_trackers.rb new file mode 100644 index 00000000000..2ce61ed03ba --- /dev/null +++ b/db/primary_migrate/20230206183539_drop_otp_requests_trackers.rb @@ -0,0 +1,14 @@ +class DropOtpRequestsTrackers < ActiveRecord::Migration[7.0] + def change + drop_table :otp_requests_trackers do |t| + t.datetime "otp_last_sent_at", precision: nil + t.integer "otp_send_count", default: 0 + t.string "attribute_cost" + t.string "phone_fingerprint", default: "", null: false + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil + t.boolean "phone_confirmed", default: false + t.index ["phone_fingerprint", "phone_confirmed"], name: "index_on_phone_and_confirmed", unique: true + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 83e88bb02b4..7e8bef74a79 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[7.0].define(version: 2023_01_26_195401) do +ActiveRecord::Schema[7.0].define(version: 2023_02_06_183539) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" enable_extension "pgcrypto" @@ -357,17 +357,6 @@ t.index ["issuer", "year_month", "user_id"], name: "index_monthly_auth_counts_on_issuer_and_year_month_and_user_id", unique: true end - create_table "otp_requests_trackers", id: :serial, force: :cascade do |t| - t.datetime "otp_last_sent_at", precision: nil - t.integer "otp_send_count", default: 0 - t.string "attribute_cost" - t.string "phone_fingerprint", default: "", null: false - t.datetime "created_at", precision: nil - t.datetime "updated_at", precision: nil - t.boolean "phone_confirmed", default: false - t.index ["phone_fingerprint", "phone_confirmed"], name: "index_on_phone_and_confirmed", unique: true - end - create_table "partner_account_statuses", force: :cascade do |t| t.string "name", null: false t.integer "order", null: false diff --git a/spec/factories/database_throttles.rb b/spec/factories/database_throttles.rb deleted file mode 100644 index 73aaf4398d4..00000000000 --- a/spec/factories/database_throttles.rb +++ /dev/null @@ -1,10 +0,0 @@ -FactoryBot.define do - factory :database_throttle do - throttle_type { :idv_doc_auth } - - trait :with_throttled do - attempts { 9999 } - attempted_at { Time.zone.now } - end - end -end