]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20100513171259_add_user_date_index_to_changeset.rb
Reduce the max class length after splitting the changeset comments controller tests out
[rails.git] / db / migrate / 20100513171259_add_user_date_index_to_changeset.rb
1 class AddUserDateIndexToChangeset < ActiveRecord::Migration[5.0]
2   def self.up
3     add_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx"
4   end
5
6   def self.down
7     remove_index :changesets, :name => "changesets_user_id_created_at_idx"
8   end
9 end