Welcome to mirror list, hosted at ThFree Co, Russian Federation.

authentication_event.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ac3c5fbd9ce10d182d5570bf1ee0c54a2d6e544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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