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 / .svn / pristine / 44 / 449222a50e6cb8714622770c05bae7166ee2e543.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (263 Bytes)

1
class AddMissingIndexesToJournals < ActiveRecord::Migration
2
  def self.up
3
    add_index :journals, :user_id
4
    add_index :journals, :journalized_id
5
  end
6

    
7
  def self.down
8
    remove_index :journals, :user_id
9
    remove_index :journals, :journalized_id
10
  end
11
end