2019-03-15 01:32:57 +00:00
|
|
|
# frozen_string_literal: false
|
|
|
|
|
|
2017-07-23 11:26:04 +00:00
|
|
|
class AddMissingIndexesToTokens < ActiveRecord::Migration[4.2]
|
2009-10-17 22:23:29 +00:00
|
|
|
def self.up
|
|
|
|
|
add_index :tokens, :user_id
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
|
remove_index :tokens, :user_id
|
|
|
|
|
end
|
|
|
|
|
end
|