Sha256: 718420c6fe810b52d55a0ea8998fe6fe6b8ad4848c5763cd93f599ff9a427025

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up
    add_column :audits, :request_uuid, :string
    add_index :audits, :request_uuid
  end

  def self.down
    remove_column :audits, :request_uuid
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
audited-hp-4.3.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-hp-4.3.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.3.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-activerecord-4.2.2 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-activerecord-4.2.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-activerecord-4.2.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-activerecord-4.0.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb