Skip to content

Commit

Permalink
Merge pull request cloudfoundry#3645 from sap-contributions/add-route…
Browse files Browse the repository at this point in the history
…s-space-id-index

Add routes_space_id index
philippthun authored Feb 23, 2024
2 parents 17c3b41 + 9ee4e3a commit 0906849
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrations/20240219113000_add_routes_space_id_index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Sequel.migration do
up do
add_index :routes, :space_id, name: :routes_space_id_index, options: %i[if_not_exists concurrently] if database_type == :postgres
end

down do
drop_index :routes, :space_id, name: :routes_space_id_index, options: %i[if_exists concurrently] if database_type == :postgres
end
end

0 comments on commit 0906849

Please sign in to comment.