字段不能包含起始v
或V
{type:'regExp[/[^vV]/]', prompt: "don't start with v" }
{type:'regExp[/^vV/]', prompt: "don't start with v" }
{type:'regExp[/^(v|V)/]', prompt: "don't start with v" }
{type:'regExp[/^(v|V)[.]*/]', prompt: "don't start with v" }
没有人工作。不明白为什么。
即使是最简单的也不起作用
{type:'regExp[/^y/]', prompt: "don't be y" }
答案 0 :(得分:0)
rubberduck ftw:
class Template < ActiveRecord::Base
enum status: { draft: 0, published: 1 }
end