Skip to content

Commit

Permalink
removed null values on status and error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjones352 committed Oct 8, 2020
1 parent b3baa79 commit 34190f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20201005190456_create_end_product_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 34190f2

Please sign in to comment.