Skip to content

Commit

Permalink
Suggest using numeric whodunnit column type for performance (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima authored Sep 8, 2024
1 parent d304bd5 commit 130001b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class CreateVersions < ActiveRecord::Migration<%= migration_version %>

def change
create_table :versions<%= versions_table_options %><%= version_table_primary_key_type %> do |t|
# Consider using bigint type for performance if you are going to store only numeric ids.
# t.bigint :whodunnit
t.string :whodunnit

# Known issue in MySQL: fractional second precision
Expand Down

0 comments on commit 130001b

Please sign in to comment.