Sha256: 5e75197ec55283ee4a342fb07a086a2ed3600511be1cd4374466139c00ea3145

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# This migration and AddTransactionIdColumnToVersions provide the necessary
# schema for tracking associations.
class AddForeignTypeToVersionAssociations < ActiveRecord::Migration<%= migration_version %>
  def self.up
    add_column :version_associations, :foreign_type, :string, index: true
  end

  def self.down
    remove_column :version_associations, :foreign_type
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paper_trail-association_tracking-2.0.0 lib/generators/paper_trail_association_tracking/templates/add_foreign_type_to_version_associations.rb.erb
paper_trail-association_tracking-1.1.1 lib/generators/paper_trail_association_tracking/templates/add_foreign_type_to_version_associations.rb.erb