mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
removed support for Rails < 3.0
This commit is contained in:
parent
6fd369b91e
commit
0572a89a4d
1 changed files with 1 additions and 5 deletions
|
|
@ -9,11 +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|
|
||||
if Rails.version < '3.0'
|
||||
todo.save(false)
|
||||
else
|
||||
todo.save(:validate => false)
|
||||
end
|
||||
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