diff --git a/app/lib/database.rb b/app/lib/database.rb index b149e8b0b..6298ee673 100644 --- a/app/lib/database.rb +++ b/app/lib/database.rb @@ -7,7 +7,7 @@ module Database # @param table [String] the name of the table to check for def self.table_exists?(table) ActiveRecord::Base.connection.table_exists?(table) - rescue ActiveRecord::NoDatabaseError + rescue ActiveRecord::NoDatabaseError, ActiveRecord::ConnectionNotEstablished false end end