forgeplus/db/migrate/20210108015318_create_ci_te...

15 lines
497 B
Ruby
Raw Normal View History

2021-11-22 13:15:45 +08:00
class CreateCiTemplates < ActiveRecord::Migration[5.2]
def change
create_table :ci_templates do |t|
t.string :template_name, null: false, comment: '模板名称'
t.string :stage_type, null: false, comment: '模板所属阶段类型init/build/deploy/customize/confirm'
t.string :category, null: false, comment: '模板分类'
t.text :content, null: false, comment: '模板yml内容'
t.timestamps
end
add_index :ci_templates, [:stage_type]
end
end