Sha256: bb1359c46b6c9bca2d8ca96e51d1c340636f2395606b0cdbc5791122fe31ff83
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> def change create_table :login_activities do |t| t.text :scope t.text :strategy t.text :identity t.boolean :success t.text :failure_reason t.references :user, polymorphic: true t.text :context t.text :ip t.text :user_agent t.text :referrer t.text :city t.text :region t.text :country t.datetime :created_at end add_index :login_activities, :identity add_index :login_activities, :ip add_index :login_activities, :user_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authtrail-0.1.0 | lib/generators/authtrail/templates/login_activities_migration.rb |