view .svn/pristine/b6/b6d54be2b02cabfbbb21a566fc3450be594155e4.svn-base @ 1606:16325d2ab2dd deploy

Install static site conf file too
author Chris Cannam
date Fri, 25 Aug 2017 15:20:53 +0100
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