aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.textile
diff options
context:
space:
mode:
authorEthan Mick <ethanmski@gmail.com>2012-04-04 11:07:33 -0400
committerEthan Mick <ethanmski@gmail.com>2012-04-04 11:07:33 -0400
commit316cb1f7edbed53ef990b3d680ea30b380a2811b (patch)
treebe5d1f23f8023f6a03606976f05d960c972e9402 /guides/source/migrations.textile
parentbbe31cc5239eb1a0838b933e6ce10d2dd8a5ccd2 (diff)
downloadrails-316cb1f7edbed53ef990b3d680ea30b380a2811b.tar.gz
rails-316cb1f7edbed53ef990b3d680ea30b380a2811b.tar.bz2
rails-316cb1f7edbed53ef990b3d680ea30b380a2811b.zip
Updated migrations.textile to change :integer on line 807 to :boolean, as it was earlier in the example. :flag is a boolean, not an integer. (defaults to false)
Diffstat (limited to 'guides/source/migrations.textile')
-rw-r--r--guides/source/migrations.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/migrations.textile b/guides/source/migrations.textile
index cb7ee1e6a2..04b453667a 100644
--- a/guides/source/migrations.textile
+++ b/guides/source/migrations.textile
@@ -804,7 +804,7 @@ class AddFlagToProduct < ActiveRecord::Migration
end
def change
- add_column :products, :flag, :integer
+ add_column :products, :flag, :boolean
Product.reset_column_information
Product.all.each do |product|
product.update_attributes!(:flag => false)