Skip to content

Commit

Permalink
Disable transactions for relation member index changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 26, 2023
1 parent 6e28c5f commit 64952fe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class CorrectRelationMembersPrimaryKey < ActiveRecord::Migration[7.0]
disable_ddl_transaction!

def up
alter_primary_key :current_relation_members, [:relation_id, :sequence_id]
alter_primary_key :relation_members, [:relation_id, :version, :sequence_id]
Expand Down

0 comments on commit 64952fe

Please sign in to comment.