mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
增加从webhook接收仓库日志记录
This commit is contained in:
17
db/migrate/20220711061848_create_commit_logs.rb
Normal file
17
db/migrate/20220711061848_create_commit_logs.rb
Normal 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
|
||||
Reference in New Issue
Block a user