summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
blob: 26e37bf0381d399db48553fa121c306cf470d52e (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddMissingIndexesToJournals < ActiveRecord::Migration[4.2]
  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