FIX: Add additional rescue for assets:precompile

FIX: Add additional rescue for assets:precompile

This error can be caused if assets are precompiled before the database has been migrated

diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 0e2c652..2815f44 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

GitHub sha: bc524371

This commit has been mentioned on Discourse Meta. There might be relevant details there:

This commit has been mentioned on Discourse Meta. There might be relevant details there: