Skip to content

Commit 930bc48

Browse files
authored
DEV: Fix mismatched column types (#80)
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.
1 parent 5d0fd42 commit 930bc48

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
class AlterTeambuildTargetIdToBigint < ActiveRecord::Migration[7.1]
4+
def up
5+
change_column :teambuild_target_users, :teambuild_target_id, :bigint
6+
end
7+
8+
def down
9+
raise ActiveRecord::IrreversibleMigration
10+
end
11+
end

0 commit comments

Comments
 (0)