From 1dc55bcc5bd7d664f8fc32feec21416274c376b0 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Fri, 5 May 2017 13:50:48 -0400 Subject: [PATCH] attempt to handle one more multisite edge case --- lib/tasks/assets.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 28f6d35cd8e..2daf2ab15c7 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -51,7 +51,11 @@ task 'assets:precompile:css' => 'environment' do if ActiveRecord::Base.connection.table_exists?(Theme.table_name) STDERR.puts "Compiling css for #{db} #{Time.zone.now}" - Stylesheet::Manager.precompile_css + begin + Stylesheet::Manager.precompile_css + rescue => PG::UndefinedColumn + STDERR.puts "Skipping precompilation of CSS cause schema is old, you are precompiling prior to running migrations." + end end end