CloudIDEA文件标记已读未读

This commit is contained in:
“xxq250”
2022-07-28 16:42:21 +08:00
parent 79a6841bbc
commit 4ccf8ea5ff
6 changed files with 64 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
class CreateMarkFiles < ActiveRecord::Migration[5.2]
def change
create_table :mark_files do |t|
t.references :pull_request
t.integer :user_id
t.string :file_path_sha
t.string :file_path
t.boolean :mark_as_read, default: false
t.boolean :updated_after_read, default: false
t.timestamps
end
add_index :mark_files, :file_path_sha
end
end