debian-mirror-gitlab/app/models/authentication_event.rb
2020-11-24 15:15:51 +05:30

13 lines
228 B
Ruby

# frozen_string_literal: true
class AuthenticationEvent < ApplicationRecord
belongs_to :user, optional: true
validates :provider, :user_name, :result, presence: true
enum result: {
failed: 0,
success: 1
}
end