Skip to content

Commit

Permalink
DEV: Fix mismatched column types (#329)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nbianca authored Oct 10, 2024
1 parent da1c99e commit b43d82d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/migrate/20241009161603_alter_query_id_to_bigint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

class AlterQueryIdToBigint < ActiveRecord::Migration[7.1]
def up
change_column :data_explorer_query_groups, :query_id, :bigint
end

def down
raise ActiveRecord::IrreversibleMigration
end
end

0 comments on commit b43d82d

Please sign in to comment.