gitlab-org--gitlab-foss/app/models/authentication_event.rb

13 lines
228 B
Ruby
Raw Normal View History

# 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