aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2008-09-13 13:01:26 +0200
committerHongli Lai (Phusion) <hongli@phusion.nl>2008-09-13 13:01:26 +0200
commitf567a7f228a2e7a9000acf1a31e933246b0ecde4 (patch)
tree992d0af5023259a0c774bb0ccb006b7c3c687592 /activerecord
parent143fbbddbbce84f44434c58828e2a537553e69ea (diff)
downloadrails-f567a7f228a2e7a9000acf1a31e933246b0ecde4.tar.gz
rails-f567a7f228a2e7a9000acf1a31e933246b0ecde4.tar.bz2
rails-f567a7f228a2e7a9000acf1a31e933246b0ecde4.zip
Write class overview for ColumnDefinition.
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 bcb975e8e1..4e158ae45d 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -252,6 +252,10 @@ module ActiveRecord
class IndexDefinition < Struct.new(:table, :name, :unique, :columns) #:nodoc:
end
+ # Abstract representation of a column definition. Instances of this type
+ # are typically created by methods in TableDefinition, and added to the
+ # +columns+ attribute of said TableDefinition object, in order to be used
+ # for generating a number of table creation or table changing SQL statements.
class ColumnDefinition < Struct.new(:base, :name, :type, :limit, :precision, :scale, :default, :null) #:nodoc:
def sql_type