forgeplus/db/migrate/20210108055023_create_ci_pi...

12 lines
413 B
Ruby

class CreateCiPipelines < ActiveRecord::Migration[5.2]
def change
create_table :ci_pipelines do |t|
t.string :pipeline_name, null: false, comment: '流水线名称'
t.string :pipeline_status, null: false, comment: 'successed/failed/running/errored/pending/killed/unknown' , default: 'unknown'
t.string :file_name, null: false, comment: '文件名称'
t.timestamps
end
end
end