Move the test bits related to deprecated IC::File out of the main testschema
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Genre.pm
CommitLineData
527b7d89 1package DBICTest::Schema::Genre;
2
3use strict;
4
660cf1be 5use base qw/DBICTest::BaseResult/;
527b7d89 6
7__PACKAGE__->table('genre');
87310237 8__PACKAGE__->add_columns(
9 genreid => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 },
13 name => {
14 data_type => 'varchar',
15 size => 100,
16 },
17);
527b7d89 18__PACKAGE__->set_primary_key('genreid');
87310237 19__PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
527b7d89 20
87310237 21__PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
527b7d89 22
2284af7e 23__PACKAGE__->has_one (model_cd => 'DBICTest::Schema::CD', 'genreid');
24
527b7d89 251;