From 4c9df8c8302de2629aba198b7f65385939de86ab Mon Sep 17 00:00:00 2001 From: nigel007 <609441862@qq.com> Date: Wed, 30 Dec 2020 16:17:23 +0800 Subject: [PATCH] add column use_blockchain into attrs --- app/forms/projects/create_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/forms/projects/create_form.rb b/app/forms/projects/create_form.rb index 39c372309..fd303f61c 100644 --- a/app/forms/projects/create_form.rb +++ b/app/forms/projects/create_form.rb @@ -1,7 +1,7 @@ class Projects::CreateForm < BaseForm REPOSITORY_NAME_REGEX = /^(?!_)(?!.*?_$)[a-zA-Z0-9_-]+$/ #只含有数字、字母、下划线不能以下划线开头和结尾 attr_accessor :user_id, :name, :description, :repository_name, :project_category_id, - :project_language_id, :ignore_id, :license_id, :private + :project_language_id, :ignore_id, :license_id, :private, :blockchain validates :user_id, :name, :description,:repository_name, :project_category_id, :project_language_id, presence: true