summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
blob: 4deed673ceb57f5501f34620c5b22421af5f7f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: false

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