Sha256: 3149e85b26a08145a3389a7aed410c01982070b2b7ce270426d4c43a6599293d

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

# This migration and CreateVersionAssociations provide the necessary
# schema for tracking associations.
class AddTransactionIdColumnToVersions < ActiveRecord::Migration[7.0]
  def self.up
    add_column :versions, :transaction_id, :integer
    add_index :versions, [:transaction_id]
  end

  def self.down
    remove_index :versions, [:transaction_id]
    remove_column :versions, :transaction_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trusty-cms-7.0.8 db/migrate/20250103191134_add_transaction_id_column_to_versions.rb
trusty-cms-7.0.7 db/migrate/20250103191134_add_transaction_id_column_to_versions.rb