summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb
blob: dad7007e4e286de7bc4ea5305cf035ffd4b304e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

class AddMissingIndexesToTokens < ActiveRecord::Migration[4.2]
  def self.up
    add_index :tokens, :user_id
  end

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