canvas-lms/db/migrate/20120206182403_remove_dupli...

12 lines
261 B
Ruby

class RemoveDuplicateEnrollmentsFromSections < ActiveRecord::Migration
disable_ddl_transaction!
def self.up
count = Enrollment.remove_duplicate_enrollments_from_sections
say "Deleted #{count} duplicate enrollments"
end
def self.down
end
end