mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
7 lines
260 B
Ruby
7 lines
260 B
Ruby
class DeployKey < Key
|
|
has_many :deploy_keys_projects, dependent: :destroy
|
|
has_many :projects, through: :deploy_keys_projects
|
|
|
|
scope :in_projects, ->(projects) { joins(:deploy_keys_projects).where('deploy_keys_projects.project_id in (?)', projects) }
|
|
end
|