mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +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
|
# 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|
|
||||||
if Rails.version < '3.0'
|
todo.save(:validate => false)
|
||||||
todo.save(false)
|
|
||||||
else
|
|
||||||
todo.save(:validate => false)
|
|
||||||
end
|
|
||||||
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