add column use_blockchain into attrs

This commit is contained in:
nigel007 2020-12-30 16:17:23 +08:00
parent 27b3bdc97b
commit 4c9df8c830
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class Projects::CreateForm < BaseForm class Projects::CreateForm < BaseForm
REPOSITORY_NAME_REGEX = /^(?!_)(?!.*?_$)[a-zA-Z0-9_-]+$/ #只含有数字、字母、下划线不能以下划线开头和结尾 REPOSITORY_NAME_REGEX = /^(?!_)(?!.*?_$)[a-zA-Z0-9_-]+$/ #只含有数字、字母、下划线不能以下划线开头和结尾
attr_accessor :user_id, :name, :description, :repository_name, :project_category_id, 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, validates :user_id, :name, :description,:repository_name,
:project_category_id, :project_language_id, presence: true :project_category_id, :project_language_id, presence: true