removed support for Rails < 3.0

This commit is contained in:
Michael Witrant 2012-07-08 21:10:54 +02:00
parent 6fd369b91e
commit 0572a89a4d

View file

@ -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
i = i + 1
if i%250==0
elapsed_sec = (Time.now-start)