2013-06-19 08:40:33 -04:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: forked_project_links
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# forked_to_project_id :integer not null
|
|
|
|
# forked_from_project_id :integer not null
|
2014-04-09 08:05:03 -04:00
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
2013-06-19 08:40:33 -04:00
|
|
|
#
|
|
|
|
|
2013-03-19 11:37:50 -04:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :forked_project_link do
|
|
|
|
association :forked_to_project, factory: :project
|
|
|
|
association :forked_from_project, factory: :project
|
2016-04-04 15:05:51 -04:00
|
|
|
|
|
|
|
after(:create) do |link|
|
|
|
|
link.forked_from_project.reload
|
|
|
|
link.forked_to_project.reload
|
|
|
|
end
|
2013-03-19 11:37:50 -04:00
|
|
|
end
|
|
|
|
end
|