d328007214
When no fork network exists for the source projects, we create a new one with the correct source
7 lines
208 B
Ruby
7 lines
208 B
Ruby
class ForkNetworkMember < ActiveRecord::Base
|
|
belongs_to :fork_network
|
|
belongs_to :project
|
|
belongs_to :forked_from_project, class_name: 'Project'
|
|
|
|
validates :fork_network, :project, presence: true
|
|
end
|