aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-12-05 20:20:37 +0000
committerMarcel Molina <marcel@vernix.org>2007-12-05 20:20:37 +0000
commit632ab246db10bf15939df8d6bfc5f964dd61ef5b (patch)
treebae3640796f76978f54da0e2a874f493ec42ca0b /activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
parent15b1b889f24ee42f96b1fb74d5cab2438c32056a (diff)
downloadrails-632ab246db10bf15939df8d6bfc5f964dd61ef5b.tar.gz
rails-632ab246db10bf15939df8d6bfc5f964dd61ef5b.tar.bz2
rails-632ab246db10bf15939df8d6bfc5f964dd61ef5b.zip
Reveal that the type option in migrations can be any supported column type for your database but also include caveat about agnosticism. Closes #7531 [adamwiggins, mikong]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
index 86ff16531f..2aa8a12228 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -292,12 +292,17 @@ module ActiveRecord
end
# Instantiates a new column for the table.
- # The +type+ parameter must be one of the following values:
+ # The +type+ parameter is normally one of the migrations native types,
+ # which is one of the following:
# <tt>:primary_key</tt>, <tt>:string</tt>, <tt>:text</tt>,
# <tt>:integer</tt>, <tt>:float</tt>, <tt>:decimal</tt>,
# <tt>:datetime</tt>, <tt>:timestamp</tt>, <tt>:time</tt>,
# <tt>:date</tt>, <tt>:binary</tt>, <tt>:boolean</tt>.
#
+ # You may use a type not in this list as long as it is supported by your
+ # database (for example, "polygon" in MySQL), but this will not be database
+ # agnostic and should usually be avoided.
+ #
# Available options are (none of these exists by default):
# * <tt>:limit</tt> -
# Requests a maximum column length (<tt>:string</tt>, <tt>:text</tt>,