Skip to content

Conversation

@kamipo
Copy link
Member

@kamipo kamipo commented Oct 29, 2016

The default arg of index_name_exists? is only used the adapter does
not implemented indexes. But currently all adapters implemented
indexes (See #26688). Therefore the default arg is never used.

@rails-bot
Copy link

r? @chancancode

(@rails-bot has picked a reviewer for you, use r? to override)

Copy link
Member

Choose a reason for hiding this comment

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

Can we deprecate this argument?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does anyone actually use this method externally? When I added the index_exists? (and column_exists?) methods in 11ff3da I renamed this method from index_exists? because it seemed to only be used internally at the time and was added as part of a general refactoring of add_index and remove_index in 99bcce7. I was wandering whether the whole method should be deprecated and made private?

@kamipo kamipo force-pushed the index_name_exists_default branch from 3951f70 to 16d2239 Compare November 3, 2016 18:32
Copy link
Member Author

Choose a reason for hiding this comment

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

I added the deprecation message.

@kamipo kamipo force-pushed the index_name_exists_default branch 2 times, most recently from 914ef90 to a5f2e4b Compare November 10, 2016 16:35
@kamipo kamipo force-pushed the index_name_exists_default branch 2 times, most recently from 80f1c9e to d31a104 Compare November 27, 2016 13:40
@kamipo kamipo force-pushed the index_name_exists_default branch from d31a104 to 70cfd76 Compare November 30, 2016 22:40
@kamipo kamipo force-pushed the index_name_exists_default branch from 70cfd76 to 272b1db Compare December 11, 2016 12:49
@kamipo kamipo force-pushed the index_name_exists_default branch from 272b1db to 830f196 Compare December 24, 2016 18:45
@kamipo kamipo force-pushed the index_name_exists_default branch 3 times, most recently from 3ba087f to d99ce24 Compare January 9, 2017 14:25
@kamipo kamipo force-pushed the index_name_exists_default branch from d99ce24 to 1e424b1 Compare January 16, 2017 13:19
@kamipo kamipo force-pushed the index_name_exists_default branch 2 times, most recently from 75eae94 to 2739378 Compare February 11, 2017 07:14
The `default` arg of `index_name_exists?` is only used the adapter does
not implemented `indexes`. But currently all adapters implemented
`indexes` (See rails#26688). Therefore the `default` arg is never used.
@rafaelfranca rafaelfranca merged commit e0d0dc6 into rails:master Feb 13, 2017
@kamipo kamipo deleted the index_name_exists_default branch February 13, 2017 04:45
yahonda added a commit to yahonda/oracle-enhanced that referenced this pull request Feb 13, 2017
yahonda added a commit to yahonda/oracle-enhanced that referenced this pull request Feb 13, 2017
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.

6 participants