summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
blob: 2667f4034ab7d5c0a35d11d4f21dcdf4cac2b088 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddMissingIndexesToJournals < ActiveRecord::Migration
  def self.up
    add_index :journals, :user_id
    add_index :journals, :journalized_id
  end

  def self.down
    remove_index :journals, :user_id
    remove_index :journals, :journalized_id
  end
end