canvas-lms/db/migrate/20110928191843_add_index_di...

12 lines
239 B
Ruby

class AddIndexDiscussionTopicsAssignmentId < ActiveRecord::Migration
tag :predeploy
def self.up
add_index :discussion_topics, [:assignment_id]
end
def self.down
remove_index :discussion_topics, [:assignment_id]
end
end