implementation of import wip
This commit is contained in:
12
app/models/codeharbor_link.rb
Normal file
12
app/models/codeharbor_link.rb
Normal file
@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CodeharborLink < ApplicationRecord
|
||||
validates :oauth2token, presence: true
|
||||
validates :user_id, presence: true
|
||||
|
||||
belongs_to :user, foreign_key: :user_id, class_name: 'InternalUser'
|
||||
|
||||
def to_s
|
||||
oauth2token
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user