From a29d1dbd59634594385d0303e06a3015dafdcd8f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 9 Dec 2011 10:14:49 -0800 Subject: squelch table exists? queries. --- .../lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 3ced32e42d..becdc7ea6e 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -24,7 +24,7 @@ module ActiveRecord # table_exists?(:developers) def table_exists?(table_name) begin - select_value("SELECT 1 FROM #{quote_table_name(table_name)} where 1=0") + select_value("SELECT 1 FROM #{quote_table_name(table_name)} where 1=0", 'SCHEMA') true rescue false -- cgit v1.2.3