forked from Gitlink/forgeplus
36 lines
791 B
Ruby
36 lines
791 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: commit_logs
|
|
#
|
|
# id :integer not null, primary key
|
|
# user_id :integer
|
|
# project_id :integer
|
|
# repository_id :integer
|
|
# name :string(255)
|
|
# full_name :string(255)
|
|
# commit_id :string(255)
|
|
# ref :string(255)
|
|
# message :text(65535)
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_commit_logs_on_commit_id (commit_id)
|
|
# index_commit_logs_on_project_id (project_id)
|
|
# index_commit_logs_on_user_id (user_id)
|
|
#
|
|
|
|
class CommitLog < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :project
|
|
belongs_to :repository
|
|
|
|
has_many :project_trends, as: :trend, dependent: :destroy
|
|
|
|
def title
|
|
self.message
|
|
end
|
|
|
|
end
|