diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 45ba882d0..4057e7b97 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -8,7 +8,7 @@ class Attachment < ApplicationRecord belongs_to :author, class_name: "User", foreign_key: :author_id # belongs_to :course, foreign_key: :container_id, optional: true # has_many :attachment_group_settings, :dependent => :destroy - has_many :attachment_histories, -> { order(version: :desc) }, :dependent => :destroy + # has_many :attachment_histories, -> { order(version: :desc) }, :dependent => :destroy # 二级目录 # belongs_to :course_second_category, optional: true