Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170813153048_add_missing_indexes.rb « migrate « db - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f43c8f46ecabbf1f694ff8c452daec41ddbc82e5 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class AddMissingIndexes < ActiveRecord::Migration[5.1]
  def change
    add_index :photos, :author_id
    add_index :user_preferences, %i[user_id email_type], length: {email_type: 190}
    add_index :locations, :status_message_id
  end
end