diff --git a/db/migrate/20150529034800_add_user_id_index_to_build_lists.rb b/db/migrate/20150529034800_add_user_id_index_to_build_lists.rb new file mode 100644 index 000000000..de1164ae1 --- /dev/null +++ b/db/migrate/20150529034800_add_user_id_index_to_build_lists.rb @@ -0,0 +1,5 @@ +class AddUserIdIndexToBuildLists < ActiveRecord::Migration + def change + add_index :build_lists, :user_id + end +end diff --git a/db/schema.rb b/db/schema.rb index 8886a63ed..6f34e3bfc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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|