Sha256: 2a4a2047948aaf0374e8e29c0ec7a3c59cb37470a3347143ae252afc7f3a297d

Contents?: true

Size: 200 Bytes

Versions: 9

Compression:

Stored size: 200 Bytes

Contents

class <%= migration_class_name %> < <%= migration_parent %>
  def self.up
    add_column :audits, :remote_address, :string
  end

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

Version data entries

9 entries across 9 versions & 1 rubygems

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