From 316cb1f7edbed53ef990b3d680ea30b380a2811b Mon Sep 17 00:00:00 2001
From: Ethan Mick <ethanmski@gmail.com>
Date: Wed, 4 Apr 2012 11:07:33 -0400
Subject: 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)

---
 guides/source/migrations.textile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'guides/source/migrations.textile')

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)
-- 
cgit v1.2.3

