diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 8 |
1 files changed, 4 insertions, 4 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 44fab82425..fde561d03a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -228,14 +228,14 @@ module ActiveRecord # This method returns <tt>self</tt>. # # ===== Examples - # # Assuming def is an instance of TableDefinition - # def.column(:granted, :boolean) + # # Assuming td is an instance of TableDefinition + # td.column(:granted, :boolean) # #=> granted BOOLEAN # - # def.column(:picture, :binary, :limit => 2.megabytes) + # td.column(:picture, :binary, :limit => 2.megabytes) # #=> picture BLOB(2097152) # - # def.column(:sales_stage, :string, :limit => 20, :default => 'new', :null => false) + # td.column(:sales_stage, :string, :limit => 20, :default => 'new', :null => false) # #=> sales_stage VARCHAR(20) DEFAULT 'new' NOT NULL def column(name, type, options = {}) column = self[name] || ColumnDefinition.new(@base, name, type) |