diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-09 10:14:49 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-09 10:14:49 -0800 |
commit | a29d1dbd59634594385d0303e06a3015dafdcd8f (patch) | |
tree | 0cbf6d286e5f12c74381a1e7c85f712f4873a2c5 /activerecord/lib/active_record/connection_adapters | |
parent | c212a34e1d1e2a4bfb546a664958aba168892c49 (diff) | |
download | rails-a29d1dbd59634594385d0303e06a3015dafdcd8f.tar.gz rails-a29d1dbd59634594385d0303e06a3015dafdcd8f.tar.bz2 rails-a29d1dbd59634594385d0303e06a3015dafdcd8f.zip |
squelch table exists? queries.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |