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

5 lines
241 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class ForkedProjectLink < ActiveRecord::Base
2017-09-10 17:25:29 +05:30
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'
2014-09-02 18:07:02 +05:30
end