Skip to content

Commit 8fc5c54

Browse files
authored
Change versions migration transaction_id to BIGINT (#54)
* Rails moved to using `:bigint` for IDs to support larger ids. This change keeps it consistent with other table foreign_key id columns in Rails.
1 parent ca695b9 commit 8fc5c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/paper_trail_association_tracking/templates/add_transaction_id_column_to_versions.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# schema for tracking associations.
33
class AddTransactionIdColumnToVersions < ActiveRecord::Migration<%= migration_version %>
44
def self.up
5-
add_column :versions, :transaction_id, :integer
5+
add_column :versions, :transaction_id, :bigint
66
add_index :versions, [:transaction_id]
77
end
88

0 commit comments

Comments
 (0)