2020-11-23 15:35:03 +08:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: fork_users
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# project_id :integer
|
|
|
|
# fork_project_id :integer
|
|
|
|
# user_id :integer
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_fork_users_on_project_id (project_id)
|
|
|
|
# index_fork_users_on_user_id (user_id)
|
|
|
|
#
|
|
|
|
|
2020-05-15 17:05:53 +08:00
|
|
|
class ForkUser < ApplicationRecord
|
2020-08-29 12:07:06 +08:00
|
|
|
belongs_to :project
|
2020-05-15 17:05:53 +08:00
|
|
|
belongs_to :user
|
2020-09-25 10:41:32 +08:00
|
|
|
belongs_to :fork_project, class_name: 'Project', foreign_key: :fork_project_id
|
2020-08-29 12:07:06 +08:00
|
|
|
|
2020-05-15 17:05:53 +08:00
|
|
|
end
|