Skip to content

Commit

Permalink
Fixes #36851 - Rename migration file so it doesn't break migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Oct 23, 2023
1 parent 5bf78eb commit 96716cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class AddHostProxyInvocations < ActiveRecord::Migration[6.0]
def change
# rubocop:disable Rails/CreateTableWithTimestamps
create_table :host_proxy_invocations do |t|
create_table :host_proxy_invocations, if_not_exists: true do |t|
t.references :host, :null => false
t.references :smart_proxy, :null => false
end
# rubocop:enable Rails/CreateTableWithTimestamps

add_index :host_proxy_invocations, [:host_id, :smart_proxy_id], unique: true
add_index :host_proxy_invocations, [:host_id, :smart_proxy_id], unique: true, if_not_exists: true
end
end

0 comments on commit 96716cf

Please sign in to comment.