mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
16 lines
314 B
Ruby
16 lines
314 B
Ruby
class CreateReviews < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :reviews do |t|
|
|
t.references :issue
|
|
t.references :reviewer
|
|
t.text :content
|
|
t.string :commit_id
|
|
t.integer :status, default: 0
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_reference :journals, :review
|
|
end
|
|
end
|