rails/rails — pull request #3706 by chaffeqa (2011-11-20 23:53:57+00:00)
Title: PostgreSQL GIN and GiST index support

Added add_index override in postgresql_adapter to allow for GiST and GIN support.

add_index(:wikis, :body, :gin => true)

Added PostgresqlAdapter indexes() :type support (specifying :btree, :gin, and :gist index types).
**NOTE:** instead of hacking the IndexDefinition class, I just added a `:type` attribute to the [`abstract/schema_definitions.rb`](https://github.com/chaffeqa/rails/commit/61fd6b6d9c57281f3af1cf2cb4a9373369011384)

ActiveRecord::Base.connection.indexes(:wikis) #=> #

Added tests for add_index. Updated tests for postgresql/schema_tests to check for index :type.

Let me know if there are other schema related updates I should do. Would gladly do so :)