Sha256: 04a4018a232cb409b05183be54d6e2297e9b1930fcb5ac87d15337513a4cbb69

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :events do |t|
      t.references :<%= singular_table_name %>, null: false, foreign_key: true
      t.string :action, null: false
      t.string :user_agent
      t.string :ip_address

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
authentication-zero-2.11.2 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.11.1 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.11.0 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.10.0 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.9.3 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.9.2 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.9.1 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt
authentication-zero-2.9.0 lib/generators/authentication/templates/migrations/create_events_migration.rb.tt