mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:数据集新字段license_id和paper_content
This commit is contained in:
@@ -2,21 +2,25 @@
|
||||
#
|
||||
# Table name: project_datasets
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# title :string(255)
|
||||
# description :text(65535)
|
||||
# project_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# id :integer not null, primary key
|
||||
# title :string(255)
|
||||
# description :text(65535)
|
||||
# project_id :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# license_id :integer
|
||||
# paper_content :text(65535)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_project_datasets_on_license_id (license_id)
|
||||
# index_project_datasets_on_project_id (project_id)
|
||||
#
|
||||
|
||||
class ProjectDataset < ApplicationRecord
|
||||
|
||||
belongs_to :project
|
||||
belongs_to :license, optional: true
|
||||
has_many :attachments, as: :container, dependent: :destroy
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user