DEV: Fix mismatched column types (#240)

The primary key is usually a bigint column, but the foreign key columns
are usually of integer type. This can lead to issues when joining these
columns due to mismatched types and different value ranges.
This commit is contained in:
Bianca Nenciu
2024-10-10 16:29:35 +03:00
committed by GitHub
parent eecb17698f
commit f47400a9b1
@@ -0,0 +1,11 @@
# frozen_string_literal: true
class AlterCustomerIdToBigint < ActiveRecord::Migration[7.1]
def up
change_column :discourse_subscriptions_subscriptions, :customer_id, :bigint
end
def down
raise ActiveRecord::IrreversibleMigration
end
end