1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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)

This commit is contained in:
Ethan Mick 2012-04-04 11:07:33 -04:00
parent bbe31cc523
commit 316cb1f7ed

View file

@ -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)