1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-02 15:31:49 +00:00
redmine/db/migrate/20091017214611_add_missing_indexes_to_journals.rb

12 lines
268 B
Ruby

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