Commit 2d2a2dfa authored by Doug Stull's avatar Doug Stull

Fix order of down

parent a3124c92
...@@ -15,8 +15,8 @@ class AddIndexOnProjectIdAndTypeToServices < ActiveRecord::Migration[6.0] ...@@ -15,8 +15,8 @@ class AddIndexOnProjectIdAndTypeToServices < ActiveRecord::Migration[6.0]
end end
def down def down
remove_concurrent_index :services, [:project_id, :type]
add_concurrent_index :services, :project_id, name: INDEX_NAME add_concurrent_index :services, :project_id, name: INDEX_NAME
remove_concurrent_index :services, [:project_id, :type]
end end
end end
...@@ -15,8 +15,8 @@ class AddIndexOnCreatorIdAndCreatedAtToProjects < ActiveRecord::Migration[6.0] ...@@ -15,8 +15,8 @@ class AddIndexOnCreatorIdAndCreatedAtToProjects < ActiveRecord::Migration[6.0]
end end
def down def down
remove_concurrent_index :projects, [:creator_id, :created_at]
add_concurrent_index :projects, :creator_id, name: INDEX_NAME add_concurrent_index :projects, :creator_id, name: INDEX_NAME
remove_concurrent_index :projects, [:creator_id, :created_at]
end end
end end
...@@ -3470,8 +3470,8 @@ ActiveRecord::Schema.define(version: 2020_03_11_165635) do ...@@ -3470,8 +3470,8 @@ ActiveRecord::Schema.define(version: 2020_03_11_165635) do
t.index ["created_at", "id"], name: "index_projects_api_created_at_id_desc", order: { id: :desc } t.index ["created_at", "id"], name: "index_projects_api_created_at_id_desc", order: { id: :desc }
t.index ["created_at", "id"], name: "index_projects_api_vis20_created_at", where: "(visibility_level = 20)" t.index ["created_at", "id"], name: "index_projects_api_vis20_created_at", where: "(visibility_level = 20)"
t.index ["created_at", "id"], name: "index_projects_on_created_at_and_id" t.index ["created_at", "id"], name: "index_projects_on_created_at_and_id"
t.index ["creator_id", "created_at"], name: "index_projects_on_mirror_creator_id_created_at", where: "((mirror = true) AND (mirror_trigger_builds = true))"
t.index ["creator_id", "created_at"], name: "index_projects_on_creator_id_and_created_at" t.index ["creator_id", "created_at"], name: "index_projects_on_creator_id_and_created_at"
t.index ["creator_id", "created_at"], name: "index_projects_on_mirror_creator_id_created_at", where: "((mirror = true) AND (mirror_trigger_builds = true))"
t.index ["description"], name: "index_projects_on_description_trigram", opclass: :gin_trgm_ops, using: :gin t.index ["description"], name: "index_projects_on_description_trigram", opclass: :gin_trgm_ops, using: :gin
t.index ["id", "repository_storage", "last_repository_updated_at"], name: "idx_projects_on_repository_storage_last_repository_updated_at" t.index ["id", "repository_storage", "last_repository_updated_at"], name: "idx_projects_on_repository_storage_last_repository_updated_at"
t.index ["id"], name: "index_on_id_partial_with_legacy_storage", where: "((storage_version < 2) OR (storage_version IS NULL))" t.index ["id"], name: "index_on_id_partial_with_legacy_storage", where: "((storage_version < 2) OR (storage_version IS NULL))"
......
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