FIX: Fix verification_status migration for uploads

* Missing ELSE 1 even though there is a default on the
  column.
This commit is contained in:
Martin Brennan 2020-09-17 14:23:37 +10:00
parent 49bd066037
commit c2a660ead3
No known key found for this signature in database
GPG Key ID: A08063EEF3EA26A4
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class ChangeUploadsVerifiedToInteger < ActiveRecord::Migration[6.0]
UPDATE uploads SET verification_status = CASE WHEN
verified THEN 2
WHEN NOT verified THEN 3
ELSE 1
END
SQL
)