socialforge/db/migrate/20151215105425_delete_exerc...

10 lines
166 B
Ruby
Raw Normal View History

2015-12-15 19:05:19 +08:00
class DeleteExerciseUser < ActiveRecord::Migration
def up
eus=ExerciseUser.where("score is null and status=?",0)
eus.delete_all
end
def down
end
end