From fdaf17ec7ce991d4c6223b53dddc047d3083c729 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 28 Mar 2019 15:22:39 -0400 Subject: [PATCH] FIX: Approved should not be assumed in the migration --- db/migrate/20190110212005_create_reviewable_histories.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/migrate/20190110212005_create_reviewable_histories.rb b/db/migrate/20190110212005_create_reviewable_histories.rb index 54f7718d1c2..0255eecd339 100644 --- a/db/migrate/20190110212005_create_reviewable_histories.rb +++ b/db/migrate/20190110212005_create_reviewable_histories.rb @@ -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