diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 16:04:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-26 13:44:08 -0700 |
commit | e60fecd8296121b27530d6b2425830e605740382 (patch) | |
tree | 4c246277a9bb93e32c1bebd593abeab29aabf3fb | |
parent | 853d39e8540a8af4c42592a172d4cf4f9c0f4e9f (diff) | |
download | rails-e60fecd8296121b27530d6b2425830e605740382.tar.gz rails-e60fecd8296121b27530d6b2425830e605740382.tar.bz2 rails-e60fecd8296121b27530d6b2425830e605740382.zip |
removing more calls to execute
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 0d828046d7..1a5ce0c9a2 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -209,12 +209,12 @@ module ActiveRecord end def indexes(table_name, name = nil) #:nodoc: - execute("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row| + exec("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row| IndexDefinition.new( table_name, row['name'], row['unique'].to_i != 0, - execute("PRAGMA index_info('#{row['name']}')").map { |col| + exec("PRAGMA index_info('#{row['name']}')").map { |col| col['name'] }) end |