From: Justin Hunter Date: Tue, 1 Dec 2009 22:47:49 +0000 (-0800) Subject: make these attributes required X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad20389060e7b14bbff096fd90d62a61a03bb263;p=dbsrgits%2FSQL-Translator-2.0-ish.git make these attributes required --- diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index 5f99592..9ce421c 100644 --- a/lib/SQL/Translator/Object/Constraint.pm +++ b/lib/SQL/Translator/Object/Constraint.pm @@ -36,6 +36,7 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object { is => 'rw', isa => Str, predicate => 'has_type', + required => 1, ); has 'deferrable' => ( @@ -61,6 +62,7 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object { reference_columns => 'elements', }, default => sub { [] }, + required => 1, ); has 'match_type' => (