Sha256: 4aaa26217664fac20fdb15e6b62631b5a15d91ef182df07ff7f8eb9e9336fb9f
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> def change create_table :login_activities do |t| t.string :scope t.string :strategy t.string :identity t.boolean :success t.string :failure_reason t.references :user, polymorphic: true t.string :context t.string :ip 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 add_index :login_activities, :identity add_index :login_activities, :ip end end
Version data entries
4 entries across 4 versions & 1 rubygems