Sha256: ca2964f6a383ad0eba299bf5a6704c8c96a3efb6ce072adddae9db3569255e73

Contents?: true

Size: 232 Bytes

Versions: 9

Compression:

Stored size: 232 Bytes

Contents

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

9 entries across 9 versions & 1 rubygems

Version Path
audited-4.10.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.9.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.8.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.7.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.7.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.6.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.5.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.4.1 lib/generators/audited/templates/add_request_uuid_to_audits.rb
audited-4.4.0 lib/generators/audited/templates/add_request_uuid_to_audits.rb