add check_uuid_url to codeharbor_link
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CodeharborLink < ApplicationRecord
|
||||
validates :oauth2token, presence: true
|
||||
validates :push_url, presence: true
|
||||
validates :check_uuid_url, presence: true
|
||||
validates :api_key, presence: true
|
||||
|
||||
belongs_to :user, foreign_key: :user_id, class_name: 'InternalUser'
|
||||
|
||||
def to_s
|
||||
oauth2token
|
||||
id.to_s
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user