summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb
blob: 83a259e59aabb95b0d4acdc41a67751a4b7d4563 (plain)
1
2
3
4
5
6
7
8
9
class AddMissingIndexesToUserPreferences < ActiveRecord::Migration[4.2]
  def self.up
    add_index :user_preferences, :user_id
  end

  def self.down
    remove_index :user_preferences, :user_id
  end
end