view .svn/pristine/b6/b6d54be2b02cabfbbb21a566fc3450be594155e4.svn-base @ 1625:808a40a7cac7 live

Have a go at fixing #570 Can't delete downloadable file from version in project with no issue tracker
author Chris Cannam
date Thu, 07 Feb 2019 13:48:00 +0000
parents cbb26bc654de
children
line wrap: on
line source
class AddMissingIndexesToAttachments < ActiveRecord::Migration
  def self.up
    add_index :attachments, [:container_id, :container_type]
    add_index :attachments, :author_id
  end

  def self.down
    remove_index :attachments, :column => [:container_id, :container_type]
    remove_index :attachments, :author_id
  end
end