diff options
author | Stefan Kanev <stefan.kanev@gmail.com> | 2014-08-01 16:13:38 +0200 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-01-19 13:40:13 +0900 |
commit | 48e99a45310f5fec515305e90ff8ee2a6a61bada (patch) | |
tree | fe3354e0de2cf67944349db3b94ac7a4136ae8ec /guides/source/contributing_to_ruby_on_rails.md | |
parent | 53919bbfd2b3232ec66e0cdea7b387725653ab43 (diff) | |
download | rails-48e99a45310f5fec515305e90ff8ee2a6a61bada.tar.gz rails-48e99a45310f5fec515305e90ff8ee2a6a61bada.tar.bz2 rails-48e99a45310f5fec515305e90ff8ee2a6a61bada.zip |
Add an `:if_exists` option to `drop_table`
If set to `if_exists: true`, it generates a statement like:
DROP TABLE IF EXISTS posts
This syntax is supported in the popular SQL servers, that is (at least)
SQLite, PostgreSQL, MySQL, Oracle and MS SQL Sever.
Closes #16366.
Diffstat (limited to 'guides/source/contributing_to_ruby_on_rails.md')
0 files changed, 0 insertions, 0 deletions