forgeplus/app/models/project_detail.rb

20 lines
462 B
Ruby
Raw Normal View History

2020-11-23 15:35:03 +08:00
# == Schema Information
#
# Table name: project_details
#
# id :integer not null, primary key
# project_id :integer
# content :text(4294967295)
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_project_details_on_project_id (project_id)
#
2020-10-04 17:32:37 +08:00
class ProjectDetail < ApplicationRecord
belongs_to :project, optional: true
has_many :attachments, as: :container, dependent: :destroy
end