view .svn/pristine/bb/bbbdeb907ff2fe8385d98d3d804c56255f721276.svn-base @ 1200:fc5d582a25f9 live

Fix internal error on homepage!
author Chris Cannam
date Wed, 23 Jan 2013 11:25:09 +0000
parents cbb26bc654de
children
line wrap: on
line source
class AddMissingIndexesToWatchers < ActiveRecord::Migration
  def self.up
    add_index :watchers, :user_id
    add_index :watchers, [:watchable_id, :watchable_type]
  end

  def self.down
    remove_index :watchers, :user_id
    remove_index :watchers, :column => [:watchable_id, :watchable_type]
  end
end