增加从webhook接收仓库日志记录

This commit is contained in:
xiaoxiaoqiong
2022-07-11 15:52:38 +08:00
parent 0dd062ce1c
commit ed0655452c
4 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
class CreateCommitLogs < ActiveRecord::Migration[5.2]
def change
create_table :commit_logs do |t|
t.references :user
t.references :project
t.integer :repository_id
t.string :name
t.string :full_name
t.string :commit_id
t.string :ref
t.string :message
t.timestamps
end
add_index :commit_logs, :commit_id
end
end