diff options
author | Xavier Noria <fxn@hashref.com> | 2012-12-07 17:37:57 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-12-07 17:37:57 +0100 |
commit | 27ca9151f107009817d3fa8345e2ccd562d54511 (patch) | |
tree | 793976a4b0fdade121383645f6385b07286f8277 /activerecord/lib | |
parent | 0adcf6d90e787f2c953d2d58b875d1ff9ef71da8 (diff) | |
download | rails-27ca9151f107009817d3fa8345e2ccd562d54511.tar.gz rails-27ca9151f107009817d3fa8345e2ccd562d54511.tar.bz2 rails-27ca9151f107009817d3fa8345e2ccd562d54511.zip |
revises a RDoc example to make it idiomatic
The force flag suggests the original was probably copied
from some db/schema.rb. Thanks to Josh Susser for spotting
and reporting this.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 16 |
1 files changed, 8 insertions, 8 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 7ec6abbc45..73012834c9 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -190,16 +190,16 @@ module ActiveRecord # # What can be written like this with the regular calls to column: # - # create_table "products", force: true do |t| - # t.column "shop_id", :integer - # t.column "creator_id", :integer - # t.column "name", :string, default: "Untitled" - # t.column "value", :string, default: "Untitled" - # t.column "created_at", :datetime - # t.column "updated_at", :datetime + # create_table :products do |t| + # t.column :shop_id, :integer + # t.column :creator_id, :integer + # t.column :name, :string, default: "Untitled" + # t.column :value, :string, default: "Untitled" + # t.column :created_at, :datetime + # t.column :updated_at, :datetime # end # - # Can also be written as follows using the short-hand: + # can also be written as follows using the short-hand: # # create_table :products do |t| # t.integer :shop_id, :creator_id |