From 837392132afd1c0ba8888f01649d1620b73c3626 Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Sat, 13 Sep 2008 13:01:50 +0200 Subject: Add example for TableDefinition#column in combination wtih database-specific types. --- .../active_record/connection_adapters/abstract/schema_definitions.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/lib') 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. -- cgit v1.2.3