2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-02-14 03:01:01 +08:00
|
|
|
class UserAuthTokenLog < ActiveRecord::Base
|
2018-08-31 16:18:06 +08:00
|
|
|
belongs_to :user
|
2017-02-14 03:01:01 +08:00
|
|
|
end
|
2017-03-22 14:26:53 +08:00
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: user_auth_token_logs
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# action :string not null
|
|
|
|
# user_auth_token_id :integer
|
|
|
|
# user_id :integer
|
|
|
|
# client_ip :inet
|
|
|
|
# user_agent :string
|
|
|
|
# auth_token :string
|
|
|
|
# created_at :datetime
|
|
|
|
# path :string
|
|
|
|
#
|
2019-04-26 16:23:27 +08:00
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_user_auth_token_logs_on_user_id (user_id)
|
|
|
|
#
|