socialforge/db/migrate/20160310033019_delete_stude...

9 lines
202 B
Ruby

class DeleteStudentWorkData < ActiveRecord::Migration
def up
StudentWork.where("homework_common_id = 2604 AND user_id = 10763 AND final_score = 0").destroy_all
end
def down
end
end