added new option to enforce Date or DateTime inflation, no matter what type the colum...
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Producer.pm
index 01fa843..26e140e 100644 (file)
@@ -1,4 +1,5 @@
-package DBICTest::Schema::Producer;
+package # hide from PAUSE 
+    DBICTest::Schema::Producer;
 
 use base 'DBIx::Class::Core';
 
@@ -10,8 +11,14 @@ __PACKAGE__->add_columns(
   },
   'name' => {
     data_type => 'varchar',
+    size      => 100,
   },
 );
 __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'
+);
 
 1;