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

Add default_index_type? to the generic schema dumper doesn't have the knowledge about an index type #27986

Merged
merged 1 commit into from Feb 13, 2017

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Feb 13, 2017

No description provided.

@@ -509,6 +509,10 @@ def combine_bind_parameters(
result
end

def default_index_type?(index) # :nodoc:
index.using.nil? || index.using == :btree
Copy link
Member

Choose a reason for hiding this comment

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

All the adapters have btree?

Copy link
Member Author

@kamipo kamipo Feb 13, 2017

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

So should we move the btree check to the adapters that have btree?

@@ -509,6 +509,10 @@ def combine_bind_parameters(
result
end

def default_index_type?(index) # :nodoc:
index.using.nil?
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the :btree check to the adapters that have :btree.

@rafaelfranca rafaelfranca merged commit 2809f38 into rails:master Feb 13, 2017
@kamipo kamipo deleted the add_default_index_type branch February 13, 2017 18:51
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.

None yet

3 participants