One more (passing) multicreate test and a bit of cleanup
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Producer.pm
index 36b63a1..26ecddb 100644 (file)
@@ -15,5 +15,10 @@ __PACKAGE__->add_columns(
   },
 );
 __PACKAGE__->set_primary_key('producerid');
+__PACKAGE__->add_unique_constraint(prod_name => [ qw/name/ ]);
 
+__PACKAGE__->has_many(
+    producer_to_cd => 'DBICTest::Schema::CD_to_Producer' => 'producer'
+);
+__PACKAGE__->many_to_many('cds', 'producer_to_cd', 'cd');
 1;