diff --git a/db/migrate/20120601142035_add_name_platform_index_to_build_list_packages.rb b/db/migrate/20120601142035_add_name_platform_index_to_build_list_packages.rb new file mode 100644 index 000000000..8e8cfee7d --- /dev/null +++ b/db/migrate/20120601142035_add_name_platform_index_to_build_list_packages.rb @@ -0,0 +1,5 @@ +class AddNamePlatformIndexToBuildListPackages < ActiveRecord::Migration + def change + add_index :build_list_packages, [:name,:project_id] + end +end diff --git a/db/schema.rb b/db/schema.rb index fa167f2e8..0cc3dfd44 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -96,6 +96,7 @@ ActiveRecord::Schema.define(:version => 20120730214052) do end add_index "build_list_packages", ["build_list_id"], :name => "index_build_list_packages_on_build_list_id" + add_index "build_list_packages", ["name", "project_id"], :name => "index_build_list_packages_on_name_and_project_id" add_index "build_list_packages", ["platform_id"], :name => "index_build_list_packages_on_platform_id" add_index "build_list_packages", ["project_id"], :name => "index_build_list_packages_on_project_id"