diff --git a/db/primary_migrate/20250321141653_change_null_constraint_on_sp_return_log.rb b/db/primary_migrate/20250321141653_change_null_constraint_on_sp_return_log.rb new file mode 100644 index 00000000000..34b2a8985ef --- /dev/null +++ b/db/primary_migrate/20250321141653_change_null_constraint_on_sp_return_log.rb @@ -0,0 +1,5 @@ +class ChangeNullConstraintOnSpReturnLog < ActiveRecord::Migration[8.0] + def change + change_column_null(:sp_return_logs, :requested_at, true) + end +end diff --git a/db/schema.rb b/db/schema.rb index ef48c047c73..9d63e03380c 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_11_164618) do +ActiveRecord::Schema[8.0].define(version: 2025_03_21_141653) 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,7 @@ end create_table "sp_return_logs", force: :cascade do |t| - t.datetime "requested_at", precision: nil, null: false, comment: "sensitive=false" + 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"