forked from Gitlink/forgeplus
add column use_blockchain into attrs
This commit is contained in:
parent
27b3bdc97b
commit
4c9df8c830
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue