2022-07-11 15:52:38 +08:00
|
|
|
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
|
|
|
|
|
|
2022-07-11 15:52:38 +08:00
|
|
|
end
|