aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-04-06 18:41:00 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-04-06 18:41:00 +0200
commitb69b908cf7166977e13235d699970511dfd17755 (patch)
tree104bf137148091a13e40effa4870fe0b25fbf83c /activerecord/lib
parent060ee2c6c94cf7050bd8be22c79e053fd602579d (diff)
parentacd21df91a468aae46520130648ffbffacb235f7 (diff)
downloadrails-b69b908cf7166977e13235d699970511dfd17755.tar.gz
rails-b69b908cf7166977e13235d699970511dfd17755.tar.bz2
rails-b69b908cf7166977e13235d699970511dfd17755.zip
Merge pull request #19670 from vngrs/misspell_of_exist
correct spell of exist [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb2
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb2
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}"