forgeplus/app/models/commit_log.rb

13 lines
204 B
Ruby
Raw Normal View History

class CommitLog < ApplicationRecord
belongs_to :user
belongs_to :project
belongs_to :repository
2023-04-17 10:13:23 +08:00
has_many :project_trends, as: :trend, dependent: :destroy
2023-04-17 10:15:57 +08:00
def title
self.message
end
end