Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Forgot to commit this part of the migration

  • Loading branch information...
commit 92374a91f07f08be4ab6209ab116464d753497fe 1 parent 7ee5bc8
@siannopollo authored
View
3  db/migrate/20120204041231_switch_inacitve_to_active_on_students.rb
@@ -8,7 +8,8 @@ def up
def down
rename_column :students, :active, :inactive
- Student.update_all "inactive = !inactive"
+ Student.reset_column_information
+ Student.find_each {|s| s.update_column :inactive, !s.inactive}
change_column_default :students, :active, false
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.