aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-22 20:13:24 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-22 20:13:24 -0300
commit900470cf3cd346ad1b17cf6902f3f98e6dae7709 (patch)
tree40fe19d0b2ae518bf8c2bf58ed6128a3abfdbf8d /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parentdf70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3 (diff)
downloadrails-900470cf3cd346ad1b17cf6902f3f98e6dae7709.tar.gz
rails-900470cf3cd346ad1b17cf6902f3f98e6dae7709.tar.bz2
rails-900470cf3cd346ad1b17cf6902f3f98e6dae7709.zip
Added docs for #indexes on adapters
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 3f70d5d0f7..8d336de498 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -690,7 +690,7 @@ module ActiveRecord
[schema, table]
end
- # Returns the list of all indexes for a table.
+ # Returns an array of indexes for the given table.
def indexes(table_name, name = nil)
schemas = schema_search_path.split(/,/).map { |p| quote(p) }.join(',')
result = query(<<-SQL, name)