Sha256: aa64bc6f85d6a65b6594be42cf15ac25ac5e4056f740d6d4c574321f343c734f

Contents?: true

Size: 574 Bytes

Versions: 7

Compression:

Stored size: 574 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :login_activities do |t|
      t.string :scope
      t.string :strategy
      <%= identity_column %>
      t.boolean :success
      t.string :failure_reason
      t.references :user, polymorphic: true
      t.string :context
      <%= ip_column %>
      t.text :user_agent
      t.text :referrer
      t.string :city
      t.string :region
      t.string :country
      t.float :latitude
      t.float :longitude
      t.datetime :created_at
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authtrail-0.6.0 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.5.0 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.4.3 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.4.2 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.4.1 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.4.0 lib/generators/authtrail/templates/login_activities_migration.rb.tt
authtrail-0.3.1 lib/generators/authtrail/templates/login_activities_migration.rb.tt