`add_reference_concurrently` doesn't check for mismatching reference column types
joshuay03 opened this issue · 0 comments
joshuay03 commented
This works:
class AddReferenceWithAlgorithmConcurrentlyAndMismatchingType < ActiveRecord::Migration
disable_ddl_transaction!
def up
# fails check cause of type mismatch
add_reference :projects, :user, type: :uuid, index: { algorithm: :concurrently }
end
def down; end
end
But this doesn't:
class AddReferenceConcurrentlyWithMismatchingType < ActiveRecord::Migration
disable_ddl_transaction!
def up
# doesn't fail check despite type mismatch
add_reference_concurrently :projects, :user, type: :uuid
end
def down; end
end