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 if_exists option to remove_index #2219

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

koic
Copy link
Collaborator

@koic koic commented Dec 2, 2021

Follow up to rails/rails#38967.

The if_exists option has been introduced since Rails 6.1.

Follow up to rails/rails#38967.

The `if_exists` option has been introduced since Rails 6.1.
@yahonda yahonda self-requested a review December 3, 2021 00:38
@yahonda
Copy link
Collaborator

yahonda commented Dec 3, 2021

At least this pull request needs this test passed. Would you execute it and see if it works?

https://github.com/rails/rails/blob/2b6182cbd68231ed2a26417e3184c3d8ed21c57a/activerecord/test/cases/migration/index_test.rb#L84-L92

@koic
Copy link
Collaborator Author

koic commented Dec 7, 2021

Ah, your suggestion makes sense! However unfortunately it cannot be executed because my Oracle adapter development environment is out of order yet.

@yahonda
Copy link
Collaborator

yahonda commented Dec 7, 2021

Understood. Let me try running this test with this pull request.

@yahonda
Copy link
Collaborator

yahonda commented Dec 21, 2021

I have confirmed this pull request passes the test added via rails/rails#38967

$ ARCONN=oracle bin/test test/cases/migration/index_test.rb -n test_remove_index_which_does_not_exist_doesnt_raise_with_option
Using oracle
Run options: -n test_remove_index_which_does_not_exist_doesnt_raise_with_option --seed 16315

# Running:

.

Finished in 2.123981s, 0.4708 runs/s, 0.4708 assertions/s.
1 runs, 1 assertions, 0 failures, 0 errors, 0 skips
$

@yahonda yahonda merged commit d5115da into rsim:master Dec 21, 2021
Copy link
Collaborator

@yahonda yahonda left a comment

Choose a reason for hiding this comment

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

LGTM

yahonda added a commit to yahonda/oracle-enhanced that referenced this pull request Dec 21, 2021
yahonda added a commit that referenced this pull request Dec 21, 2021
Merge pull request #2219 from koic/add_if_exists_to_remove_index
@koic koic deleted the add_if_exists_to_remove_index branch December 28, 2021 20:00
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.

2 participants