mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 11:38:49 +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
|
||||
i=0; max = Todo.all.count; start = Time.now
|
||||
Todo.all.each do |todo|
|
||||
todo.save(false)
|
||||
todo.save(:validate => false)
|
||||
i = i + 1
|
||||
if i%250==0
|
||||
elapsed_sec = (Time.now-start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue