add user_id index in the build_lists table

This commit is contained in:
Alexander Machehin 2015-05-29 14:33:58 +05:00
parent acbbe5432f
commit ddf9987d21
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddUserIdIndexToBuildLists < ActiveRecord::Migration
def change
add_index :build_lists, :user_id
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150519032855) do
ActiveRecord::Schema.define(version: 20150529034800) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -156,6 +156,7 @@ ActiveRecord::Schema.define(version: 20150519032855) do
t.index ["project_id", "save_to_repository_id", "build_for_platform_id", "arch_id"], :name => "maintainer_search_index"
t.index ["project_id"], :name => "index_build_lists_on_project_id"
t.index ["updated_at"], :name => "index_build_lists_on_updated_at", :order => {"updated_at" => :desc}
t.index ["user_id"], :name => "index_build_lists_on_user_id"
end
create_table "projects", force: true do |t|