diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 0e2c6525df..2815f4440c 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -58,7 +58,7 @@ task 'assets:precompile:css' => 'environment' do STDERR.puts "Compiling css for #{db} #{Time.zone.now}" begin Stylesheet::Manager.precompile_css - rescue PG::UndefinedColumn => e + rescue PG::UndefinedColumn, ActiveModel::MissingAttributeError => e STDERR.puts "#{e.class} #{e.message}: #{e.backtrace.join("\n")}" STDERR.puts "Skipping precompilation of CSS cause schema is old, you are precompiling prior to running migrations." end