FIX: Approved should not be assumed in the migration

This commit is contained in:
Robin Ward 2019-03-28 15:22:39 -04:00
parent d9eed924f5
commit fdaf17ec7c

View File

@ -28,7 +28,8 @@ class CreateReviewableHistories < ActiveRecord::Migration[5.2]
r.created_at,
r.created_at
FROM reviewables AS r
WHERE r.type = 'ReviewableUser'
WHERE r.status = 0
AND r.type = 'ReviewableUser'
SQL
end
end