Skip to content

Add support for custom index types#9451

Closed
techpeace wants to merge 1 commit intorails:masterfrom
techpeace:additional-index-support
Closed

Add support for custom index types#9451
techpeace wants to merge 1 commit intorails:masterfrom
techpeace:additional-index-support

Conversation

@techpeace
Copy link
Contributor

This is an updated version of #6101. I just squashed it and added a CHANGELOG entry, as per @steveklabnik's request. I also had to make a small tweak, but it was a one-line change. The majority of the work is still @MSNexploder's.

The original pull request adds a :type option to add_index for the Postgresql and MySQL adapters that allows custom index type support:

add_index(:wikis, :body, :type => 'gin')

@jeremy noted that perhaps this should be a :using option, since that would better reflect the SQL syntax. I'd be happy to make that change, if that sounds better.

Adds an add_index override to the Postgresql and MySQL adapters for
supporting custom index types.
@doabit
Copy link
Contributor

doabit commented Mar 2, 2013

+1

@schneems
Copy link
Member

schneems commented Mar 3, 2013

👍 for the functionality, I'm not the best to make the call on the API. I like the idea of the :using syntax that @jeremy mentioned in #6101. Could you give that change a shot and ping when done?

@MSch
Copy link
Contributor

MSch commented Mar 7, 2013

👍 for :using. I see no need to introduce a different name for the same thing.

@rafaelfranca
Copy link
Member

Yes. :using seems better

@sikachu
Copy link
Member

sikachu commented Mar 18, 2013

@techpeace would you mind updating this PR to use the :using key, and rebase it against master? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants