Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix asset compilation error for boards plugin (#43110)

Martin Brennan5a952ebcfe05
diff --git a/plugins/boards/plugin.rb b/plugins/boards/plugin.rb
index c39a58378cd..f74352de73b 100644
--- a/plugins/boards/plugin.rb
+++ b/plugins/boards/plugin.rb
@@ -51,10 +51,9 @@ after_initialize do
.pluck(:icon)
.each { |icon| DiscoursePluginRegistry.register_svg_icon(icon) }
end
- rescue ActiveRecord::NoDatabaseError,
- ActiveRecord::StatementInvalid,
- ActiveRecord::DatabaseConnectionError
- # Database may not exist/may have pending migrations yet during db:create / db:migrate bootstrap.
+ rescue ActiveRecord::ConnectionNotEstablished, ActiveRecord::StatementInvalid
+ # Database may be unreachable (asset precompile) or may have pending migrations
+ # during db:create / db:migrate bootstrap.
end
# When a column's icon changes, register it and expire the sprite cache