summaryrefslogtreecommitdiff
path: root/app/models/fork_network_member.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/fork_network_member.rb')
-rw-r--r--app/models/fork_network_member.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/fork_network_member.rb b/app/models/fork_network_member.rb
new file mode 100644
index 00000000000..6a9b52a1ef8
--- /dev/null
+++ b/app/models/fork_network_member.rb
@@ -0,0 +1,7 @@
+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