aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2008-09-13 13:01:50 +0200
committerHongli Lai (Phusion) <hongli@phusion.nl>2008-09-13 13:01:50 +0200
commit837392132afd1c0ba8888f01649d1620b73c3626 (patch)
tree87fa6ca1ac5a1a3c25bb4927d398d5766d9118ad /activerecord
parentf567a7f228a2e7a9000acf1a31e933246b0ecde4 (diff)
downloadrails-837392132afd1c0ba8888f01649d1620b73c3626.tar.gz
rails-837392132afd1c0ba8888f01649d1620b73c3626.tar.bz2
rails-837392132afd1c0ba8888f01649d1620b73c3626.zip
Add example for TableDefinition#column in combination wtih database-specific types.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb4
1 files changed, 4 insertions, 0 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 4e158ae45d..22304edfc9 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -404,6 +404,10 @@ module ActiveRecord
# td.column(:huge_integer, :decimal, :precision => 30)
# # => huge_integer DECIMAL(30)
#
+ # # Defines a column with a database-specific type.
+ # td.column(:foo, 'polygon')
+ # # => foo polygon
+ #
# == Short-hand examples
#
# Instead of calling +column+ directly, you can also work with the short-hand definitions for the default types.