uploads: add column for error messages.

Change it so uploads store errors in an `error` column instead of in the
`status` field.
This commit is contained in:
evazion
2022-02-07 14:41:48 -06:00
parent 19a9cf3d2f
commit 1a61e329ba
9 changed files with 45 additions and 21 deletions

View File

@@ -0,0 +1,6 @@
class AddErrorToUploads < ActiveRecord::Migration[7.0]
def change
add_column :uploads, :error, :text
add_index :uploads, :error, where: "error IS NOT NULL"
end
end