fixed action类型修改为node_type
This commit is contained in:
parent
18d575512d
commit
1901aca44c
|
@ -42,7 +42,7 @@ class Action::Node < ApplicationRecord
|
||||||
validates :description, length: { maximum: 65535, too_long: "不能超过65535个字符"}
|
validates :description, length: { maximum: 65535, too_long: "不能超过65535个字符"}
|
||||||
|
|
||||||
# type 0: 触发器 1: 任务作业, 2: 步骤
|
# type 0: 触发器 1: 任务作业, 2: 步骤
|
||||||
enum type: {start: 0, job: 1, step: 2}
|
enum node_type: {start: 0, job: 1, step: 2}
|
||||||
|
|
||||||
|
|
||||||
def content_yaml
|
def content_yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class AddActionNodesType < ActiveRecord::Migration[5.2]
|
class AddActionNodesType < ActiveRecord::Migration[5.2]
|
||||||
def change
|
def change
|
||||||
add_column :action_nodes, :type, :string
|
add_column :action_nodes, :node_type, :string
|
||||||
add_column :action_nodes, :is_mutil_link, :boolean
|
add_column :action_nodes, :is_mutil_link, :boolean
|
||||||
add_column :action_nodes, :link_type, :string
|
add_column :action_nodes, :link_type, :string
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue