Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL GIN and GiST index support #3699

Closed
wants to merge 2 commits into from
Closed

PostgreSQL GIN and GiST index support #3699

wants to merge 2 commits into from

Conversation

chaffeqa
Copy link
Contributor

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

Added tests.

# CREATE INDEX index_developers_on_name ON developers USING gist(name)
#
def add_index(table_name, column_name, options = {})
if !!options.delete(:gin)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the !!, and don't mutate the options hash that's passed in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing, adding the fix...

@tenderlove
Copy link
Member

We need to make sure that the :gin and :gist parameters are correctly dumped in the schema.rb before merging this.

@chaffeqa
Copy link
Contributor Author

nuts... i thought adding the commit would update this pull request... looks like it just opened a new one >< noob

@chaffeqa
Copy link
Contributor Author

le sigh

I guess this should close and be pointed to this pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants