Skip to content

Commit

Permalink
fix: disable transaction on migration (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Jul 10, 2024
1 parent 68fc131 commit 4870ebe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/migrate/20240701184757_add_deleted_at_to_fees.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

class AddDeletedAtToFees < ActiveRecord::Migration[7.1]
disable_ddl_transaction!

def change
add_column :fees, :deleted_at, :datetime
add_index :fees, :deleted_at
add_index :fees, :deleted_at, algorithm: :concurrently
end
end

0 comments on commit 4870ebe

Please sign in to comment.