fixed pipeline_name

This commit is contained in:
xxq250 2025-03-13 10:36:37 +08:00
parent e0bc394bd3
commit 1de6cc4e45
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Action::Pipeline < ApplicationRecord
belongs_to :user, optional: true belongs_to :user, optional: true
belongs_to :project belongs_to :project
validates :name, presence: { message: "不能为空" } validates :pipeline_name, presence: { message: "不能为空" }
validates :json, length: { maximum: 65535, too_long: "不能超过65535个字符"} validates :json, length: { maximum: 65535, too_long: "不能超过65535个字符"}
validates :yaml, length: { maximum: 65535, too_long: "不能超过65535个字符"} validates :yaml, length: { maximum: 65535, too_long: "不能超过65535个字符"}
end end