From 09e24a67b5f3db88a58c80cfd77029ca1871fb55 Mon Sep 17 00:00:00 2001 From: Alex Chan <172081065+alexchan-va@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:00:26 -0500 Subject: [PATCH] vebt-558-migration --- .../20241219205816_create_excel_file_events.rb | 12 ++++++++++++ db/schema.rb | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 db/migrate/20241219205816_create_excel_file_events.rb diff --git a/db/migrate/20241219205816_create_excel_file_events.rb b/db/migrate/20241219205816_create_excel_file_events.rb new file mode 100644 index 00000000000..ba7a44f32db --- /dev/null +++ b/db/migrate/20241219205816_create_excel_file_events.rb @@ -0,0 +1,12 @@ +class CreateExcelFileEvents < ActiveRecord::Migration[7.2] + def change + create_table :excel_file_events do |t| + t.integer :number_of_submissions + t.string :filename + t.timestamp :successful_at + t.integer :retry_attempt, default: 0 + t.timestamps + t.index :filename, name: "index_excel_file_events_uniqueness", unique: true + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 824356b04a7..a09e47c37d6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -693,6 +693,16 @@ t.index ["user_uuid"], name: "index_evss_claims_on_user_uuid" end + create_table "excel_file_events", force: :cascade do |t| + t.integer "number_of_submissions" + t.string "filename" + t.datetime "successful_at", precision: nil + t.integer "retry_attempt", default: 0 + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["filename"], name: "index_excel_file_events_uniqueness", unique: true + end + create_table "feature_toggle_events", force: :cascade do |t| t.string "feature_name" t.string "operation"