mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-16 09:16:32 +01:00
Merge pull request #87 from piglop/fix_rendered_notes_migration
Fix rendered notes migration. Rails 3.1+ doesn't support `save(bool)` anymore
This commit is contained in:
commit
824fe3c6cf
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class AddRenderedNotes < ActiveRecord::Migration
|
||||||
# Call save! on each todo to force generation of rendered_todos
|
# Call save! on each todo to force generation of rendered_todos
|
||||||
i=0; max = Todo.all.count; start = Time.now
|
i=0; max = Todo.all.count; start = Time.now
|
||||||
Todo.all.each do |todo|
|
Todo.all.each do |todo|
|
||||||
todo.save(false)
|
todo.save(:validate => false)
|
||||||
i = i + 1
|
i = i + 1
|
||||||
if i%250==0
|
if i%250==0
|
||||||
elapsed_sec = (Time.now-start)
|
elapsed_sec = (Time.now-start)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue