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 an `:if_exists` option to `drop_table` #18597

merged 1 commit into from Jan 20, 2015


Copy link

kamipo commented Jan 19, 2015

Squashed to #16366.

If set to `if_exists: true`, it generates a statement like:


This syntax is supported in the popular SQL servers, that is (at least)
SQLite, PostgreSQL, MySQL, Oracle and MS SQL Sever.

Closes #16366.
senny added a commit that referenced this pull request Jan 20, 2015
Add an `:if_exists` option to `drop_table`
@senny senny merged commit 6b2be71 into rails:master Jan 20, 2015
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Copy link

senny commented Jan 20, 2015

@kamipo thanks for bringing this up-to-date.

@kamipo kamipo deleted the kamipo:add-if-exists-to-drop-table branch Jan 20, 2015
kamipo added a commit to kamipo/oracle-enhanced that referenced this pull request Jan 30, 2015

`:if_exists` option introduced by rails/rails#18597.
And it is used by test case already. rails/rails@7675364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.