From 8370b4b1b720f4bab5820a30fb0866980e4868db Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 14 Apr 2017 10:33:35 -0400 Subject: [PATCH] FIX: don't precompile if we have no themes table --- lib/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index f0509fc0f88..487a761899c 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -49,7 +49,7 @@ task 'assets:precompile:css' => 'environment' do # Heroku precompiles assets before db migration, so tables may not exist. # css will get precompiled during first request instead in that case. - if ActiveRecord::Base.connection.table_exists?(ColorScheme.table_name) + if ActiveRecord::Base.connection.table_exists?(Theme.table_name) STDERR.puts "Compiling css for #{db} #{Time.zone.now}" Stylesheet::Manager.precompile_css end