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:
parent
bbe31cc523
commit
316cb1f7ed
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue