Sha256: 7b4f30627f8bfcd035a011009cd06f3a1d1d7ff4b53a528abebfbb5331321ec2

Contents?: true

Size: 263 Bytes

Versions: 25

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

class <%= migration_class_name %> < <%= migration_parent %>
  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

25 entries across 25 versions & 2 rubygems

Version Path
audited-5.8.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.7.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.6.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.5.1.pre lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.5.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.4.3 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.4.2 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.4.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.4.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.3.3 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.3.2 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.3.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.3.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.2.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-5.1.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
velocity_audited-6.0.4 lib/generators/audited/templates/add_request_uuid_to_audits.rb
velocity_audited-6.0.3 lib/generators/audited/templates/add_request_uuid_to_audits.rb
velocity_audited-6.0.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
velocity_audited-5.1.6 lib/generators/audited/templates/add_request_uuid_to_audits.rb
velocity_audited-5.1.5 lib/generators/audited/templates/add_request_uuid_to_audits.rb