canvas-lms/db/migrate/20110822151806_remove_inact...

10 lines
293 B
Ruby

class RemoveInactiveEnrollmentState < ActiveRecord::Migration
def self.up
Delayed::Job.delete_all(:tag => 'EnrollmentDateRestrictions.update_restricted_enrollments')
Enrollment.update_all({:workflow_state => 'active'}, :workflow_state => 'inactive')
end
def self.down
end
end