BigW Consortium Gitlab

Commit 64504b63 by Zeger-Jan van de Weg

Add an index to milestones title and label title

parent 0c2df939
class AddIndexToMilestones < ActiveRecord::Migration
def change
add_index :milestones, :title
add_index :labels, :title
end
end
......@@ -410,6 +410,7 @@ ActiveRecord::Schema.define(version: 20151008130321) do
end
add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree
add_index "labels", ["title"], name: "index_labels_on_title", using: :btree
create_table "members", force: true do |t|
t.integer "access_level", null: false
......@@ -491,6 +492,7 @@ ActiveRecord::Schema.define(version: 20151008130321) do
add_index "milestones", ["due_date"], name: "index_milestones_on_due_date", using: :btree
add_index "milestones", ["project_id", "iid"], name: "index_milestones_on_project_id_and_iid", unique: true, using: :btree
add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree
add_index "milestones", ["title"], name: "index_milestones_on_title", using: :btree
create_table "namespaces", force: true do |t|
t.string "name", null: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment