debian-mirror-gitlab/app/models/group_deploy_keys_group.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
401 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
class GroupDeployKeysGroup < ApplicationRecord
belongs_to :group, inverse_of: :group_deploy_keys_groups
belongs_to :group_deploy_key, inverse_of: :group_deploy_keys_groups
validates :group_deploy_key, presence: true
validates :group_deploy_key_id, uniqueness: { scope: [:group_id], message: "already exists in group" }
validates :group_id, presence: true
end