diff options
author | Ethan Mick <ethanmski@gmail.com> | 2012-04-04 11:07:33 -0400 |
---|---|---|
committer | Ethan Mick <ethanmski@gmail.com> | 2012-04-04 11:07:33 -0400 |
commit | 316cb1f7edbed53ef990b3d680ea30b380a2811b (patch) | |
tree | be5d1f23f8023f6a03606976f05d960c972e9402 /guides | |
parent | bbe31cc5239eb1a0838b933e6ce10d2dd8a5ccd2 (diff) | |
download | rails-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')
-rw-r--r-- | guides/source/migrations.textile | 2 |
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) |