fixed action节点增加属性
This commit is contained in:
parent
5939e59347
commit
d9880b66d7
|
@ -23,7 +23,7 @@
|
|||
# index_action_nodes_on_action_node_types_id (action_node_types_id)
|
||||
# index_action_nodes_on_user_id (user_id)
|
||||
#
|
||||
|
||||
# node_type 0: 触发器 1: 任务作业, 2: 步骤
|
||||
class Action::Node < ApplicationRecord
|
||||
self.table_name = 'action_nodes'
|
||||
default_scope { order(sort_no: :asc) }
|
||||
|
@ -41,8 +41,6 @@ class Action::Node < ApplicationRecord
|
|||
validates :label, length: { maximum: 200, too_long: "不能超过200个字符" }
|
||||
validates :description, length: { maximum: 65535, too_long: "不能超过65535个字符"}
|
||||
|
||||
# type 0: 触发器 1: 任务作业, 2: 步骤
|
||||
enum node_type: {start: 0, job: 1, step: 2}
|
||||
|
||||
|
||||
def content_yaml
|
||||
|
|
Loading…
Reference in New Issue