mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fixed 图形化流水线增加分支流程
This commit is contained in:
@@ -17,13 +17,17 @@
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# label :string(255)
|
||||
# node_type :string(255)
|
||||
# is_mutil_link :boolean
|
||||
# link_type :string(255)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_action_nodes_on_action_node_types_id (action_node_types_id)
|
||||
# index_action_nodes_on_user_id (user_id)
|
||||
# by_name (name)
|
||||
# index_action_nodes_on_action_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) }
|
||||
@@ -34,7 +38,7 @@ class Action::Node < ApplicationRecord
|
||||
|
||||
belongs_to :user, optional: true
|
||||
|
||||
attr_accessor :cust_name, :run_values, :input_values, :next_step_nodes
|
||||
attr_accessor :cust_name, :run_values, :input_values, :sub_nodes
|
||||
|
||||
validates :name, presence: { message: "不能为空" }
|
||||
validates :full_name, length: { maximum: 200, too_long: "不能超过200个字符" }
|
||||
|
||||
Reference in New Issue
Block a user