diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-04-06 18:17:16 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-04-06 19:33:36 +0300 |
commit | acd21df91a468aae46520130648ffbffacb235f7 (patch) | |
tree | 104bf137148091a13e40effa4870fe0b25fbf83c /activerecord/lib/active_record/connection_adapters | |
parent | 060ee2c6c94cf7050bd8be22c79e053fd602579d (diff) | |
download | rails-acd21df91a468aae46520130648ffbffacb235f7.tar.gz rails-acd21df91a468aae46520130648ffbffacb235f7.tar.bz2 rails-acd21df91a468aae46520130648ffbffacb235f7.zip |
change the explanation of :if_exists option [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 51c41cd588..e3385d6e6d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -568,7 +568,7 @@ module ActiveRecord # Set to +:cascade+ to drop dependent objects as well. # Defaults to false. # [<tt>:if_exists</tt>] - # Set to +true+ to make drop table command fail safe when table does not exists. + # Set to +true+ to only drop the table if it exists. # Defaults to false. # [<tt>:temporary</tt>] # Set to +true+ to drop temporary table. diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb index 652ae1ed63..44781125ae 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -93,7 +93,7 @@ module ActiveRecord # Set to +:cascade+ to drop dependent objects as well. # Defaults to false. # [<tt>:if_exists</tt>] - # Set to +true+ to make drop table command fail safe when table does not exists. + # Set to +true+ to only drop the table if it exists. # Defaults to false. def drop_table(table_name, options = {}) execute "DROP TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}#{' CASCADE' if options[:force] == :cascade}" |