aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
Diffstat (limited to 'guides')
-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)