10 lines
166 B
Ruby
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
|