mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 lines
332 B
Ruby
12 lines
332 B
Ruby
class AddMissingIndexesToAttachments < ActiveRecord::Migration[4.2]
|
|
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
|