debian-mirror-gitlab/app/models/forked_project_link.rb
2018-11-18 11:00:15 +05:30

6 lines
272 B
Ruby

# frozen_string_literal: true
class ForkedProjectLink < ActiveRecord::Base
belongs_to :forked_to_project, -> { where.not(pending_delete: true) }, class_name: 'Project'
belongs_to :forked_from_project, -> { where.not(pending_delete: true) }, class_name: 'Project'
end