change Undef to an empty ArrayRef and remove auto_deref
[dbsrgits/SQL-Translator-2.0-ish.git] / lib / SQL / Translator / Object / Constraint.pm
index 78688c5..91e8cee 100644 (file)
@@ -57,9 +57,12 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object {
     );
 
     has 'reference_columns' => (
-        isa => ArrayRef | Undef,
-        is => 'rw',
-        auto_deref => 1
+        isa => ArrayRef,
+        traits => ['Array'],
+        handles => {
+            reference_columns => 'elements',
+        },
+        default => sub { [] },
     );
 
     has 'match_type' => (