diff --git a/app/models/sp_return_log.rb b/app/models/sp_return_log.rb index 2285ce96e1a..30d9df3a23b 100644 --- a/app/models/sp_return_log.rb +++ b/app/models/sp_return_log.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true class SpReturnLog < ApplicationRecord - self.ignored_columns = %w[requested_at] - # rubocop:disable Rails/InverseOf belongs_to :user belongs_to :service_provider, diff --git a/db/primary_migrate/20250325164321_drop_requested_at_from_sp_return_log.rb b/db/primary_migrate/20250325164321_drop_requested_at_from_sp_return_log.rb new file mode 100644 index 00000000000..f02986d929c --- /dev/null +++ b/db/primary_migrate/20250325164321_drop_requested_at_from_sp_return_log.rb @@ -0,0 +1,5 @@ +class DropRequestedAtFromSpReturnLog < ActiveRecord::Migration[8.0] + def change + safety_assured { remove_column :sp_return_logs, :requested_at } + end +end diff --git a/db/schema.rb b/db/schema.rb index 9d63e03380c..d6ac988b823 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[8.0].define(version: 2025_03_21_141653) do +ActiveRecord::Schema[8.0].define(version: 2025_03_25_164321) do # These are extensions that must be enabled in order to support this database enable_extension "citext" enable_extension "pg_catalog.plpgsql" @@ -581,7 +581,6 @@ end create_table "sp_return_logs", force: :cascade do |t| - t.datetime "requested_at", precision: nil, comment: "sensitive=false" t.string "request_id", null: false, comment: "sensitive=false" t.integer "ial", null: false, comment: "sensitive=false" t.string "issuer", null: false, comment: "sensitive=false"