From 34190f2fde5d653f8af8a5c8b1dfa78a7542d89a Mon Sep 17 00:00:00 2001 From: Sandra Jones Date: Thu, 8 Oct 2020 11:17:09 -0400 Subject: [PATCH] removed null values on status and error --- db/migrate/20201005190456_create_end_product_update.rb | 4 ++-- db/schema.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/migrate/20201005190456_create_end_product_update.rb b/db/migrate/20201005190456_create_end_product_update.rb index 2826a79f8eb..04a6fdefa54 100644 --- a/db/migrate/20201005190456_create_end_product_update.rb +++ b/db/migrate/20201005190456_create_end_product_update.rb @@ -3,8 +3,8 @@ class CreateEndProductUpdate < Caseflow::Migration def change create_table :end_product_updates, comment: "Updates the claim label for end products established from Caseflow" do |t| - t.string :status, null: false, comment: "Status after an attempt to update the end product; expected values: 'success', 'error', ..." - t.string :error, null: false, comment: "The error message captured from BGS if the end product update failed." + t.string :status, comment: "Status after an attempt to update the end product; expected values: 'success', 'error', ..." + t.string :error, comment: "The error message captured from BGS if the end product update failed." t.string :original_code, comment: "The original end product code before the update was submitted." t.string :new_code, comment: "The new end product code the user wants to update to." t.bigint :active_request_issue_ids, null: false, array: true, default: [], comment: "A list of active request issue IDs when a user has finished editing a decision review. Used to keep track of which request issues may have been impacted by the update." diff --git a/db/schema.rb b/db/schema.rb index 3f40a641915..0efd02504cd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -587,12 +587,12 @@ t.bigint "active_request_issue_ids", default: [], null: false, comment: "A list of active request issue IDs when a user has finished editing a decision review. Used to keep track of which request issues may have been impacted by the update.", array: true t.datetime "created_at", null: false t.bigint "end_product_establishment_id", null: false, comment: "The end product establishment id used to track the end product being updated." - t.string "error", null: false, comment: "The error message captured from BGS if the end product update failed." + t.string "error", comment: "The error message captured from BGS if the end product update failed." t.string "new_code", comment: "The new end product code the user wants to update to." t.string "original_code", comment: "The original end product code before the update was submitted." t.bigint "original_decision_review_id", comment: "The original decision review that this end product update belongs to; has a non-nil value only if a new decision_review was created." t.string "original_decision_review_type", comment: "The original decision review type that this end product update belongs to" - t.string "status", null: false, comment: "Status after an attempt to update the end product; expected values: 'success', 'error', ..." + t.string "status", comment: "Status after an attempt to update the end product; expected values: 'success', 'error', ..." t.datetime "updated_at", null: false t.bigint "user_id", null: false, comment: "The ID of the user who makes an end product update." t.index ["end_product_establishment_id"], name: "index_end_product_updates_on_end_product_establishment_id"