To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20090214190337_add_watchers_user_id_type_index.rb @ 443:350acce374a2

History | View | Annotate | Download (252 Bytes)

1
class AddWatchersUserIdTypeIndex < ActiveRecord::Migration
2
  def self.up
3
    add_index :watchers, [:user_id, :watchable_type], :name => :watchers_user_id_type
4
  end
5

    
6
  def self.down
7
    remove_index :watchers, :name => :watchers_user_id_type
8
  end
9
end