mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-08-24 12:47:08 +00:00
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.
12 lines
255 B
Ruby
12 lines
255 B
Ruby
# 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
|