aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-17 20:48:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-17 20:48:10 +0000
commitfd66ccb01658b7cc7654e42233fd760b4fc788ff (patch)
tree2d14d14ea47514b096e0fb757224e62888835f37 /activerecord
parent86da56a6547289515cbb327f3d7423dd226fc31a (diff)
downloadrails-fd66ccb01658b7cc7654e42233fd760b4fc788ff.tar.gz
rails-fd66ccb01658b7cc7654e42233fd760b4fc788ff.tar.bz2
rails-fd66ccb01658b7cc7654e42233fd760b4fc788ff.zip
Document :force option to create_table. References #2921.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG2
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb3
2 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 9897ab237f..1196065110 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Document :force option to create_table. #2921 [Blair Zajac <blair@orcaware.com>]
+
* Don't add the same conditions twice in has_one finder sql. #2916 [Jeremy Evans]
* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index d1e6dcf025..09d0a80ff2 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -43,6 +43,9 @@ module ActiveRecord
# Any extra options you want appended to the table definition.
# [<tt>:temporary</tt>]
# Make a temporary table.
+ # [<tt>:force</tt>]
+ # Set to true or false to drop the table before creating it.
+ # Defaults to false.
#
# ===== Examples
# ====== Add a backend specific option to the generated SQL (MySQL)