Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Genre.pm
CommitLineData
527b7d89 1package DBICTest::Schema::Genre;
2
4a233f30 3use warnings;
527b7d89 4use strict;
5
660cf1be 6use base qw/DBICTest::BaseResult/;
527b7d89 7
8__PACKAGE__->table('genre');
87310237 9__PACKAGE__->add_columns(
10 genreid => {
11 data_type => 'integer',
12 is_auto_increment => 1,
13 },
14 name => {
15 data_type => 'varchar',
16 size => 100,
17 },
18);
527b7d89 19__PACKAGE__->set_primary_key('genreid');
87310237 20__PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
527b7d89 21
87310237 22__PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
527b7d89 23
2284af7e 24__PACKAGE__->has_one (model_cd => 'DBICTest::Schema::CD', 'genreid');
25
527b7d89 261;