aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-06 17:38:53 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-06 17:38:53 -0300
commita956ec964078ee533644fae2a99e68eda0a7c9d5 (patch)
tree839463ce974fe3ad7e8112e41eed2668593a1438 /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
parentdbb75218b56c7bc3ac8f3b26f0c8ea8e944fb10c (diff)
downloadrails-a956ec964078ee533644fae2a99e68eda0a7c9d5.tar.gz
rails-a956ec964078ee533644fae2a99e68eda0a7c9d5.tar.bz2
rails-a956ec964078ee533644fae2a99e68eda0a7c9d5.zip
No need to document drop_table in the PostgreSQLAdapter
It behaves in the same way that the abstract adapter. [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb10
1 files changed, 1 insertions, 9 deletions
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 44781125ae..168180cfd3 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -87,15 +87,7 @@ module ActiveRecord
SQL
end
- # Drops a table from the database.
- #
- # [<tt>:force</tt>]
- # Set to +:cascade+ to drop dependent objects as well.
- # Defaults to false.
- # [<tt>:if_exists</tt>]
- # Set to +true+ to only drop the table if it exists.
- # Defaults to false.
- def drop_table(table_name, options = {})
+ def drop_table(table_name, options = {}) # :nodoc:
execute "DROP TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}#{' CASCADE' if options[:force] == :cascade}"
end