socialforge/db/migrate/20151215105425_delete_exerc...

10 lines
166 B
Ruby

class DeleteExerciseUser < ActiveRecord::Migration
def up
eus=ExerciseUser.where("score is null and status=?",0)
eus.delete_all
end
def down
end
end