Move relationships out of Relationships.pm and in to the respective classes. Removed...
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Track.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::Track;
3
4 use base 'DBIx::Class::Core';
5
6 __PACKAGE__->table('track');
7 __PACKAGE__->add_columns(
8   'trackid' => {
9     data_type => 'integer',
10     is_auto_increment => 1,
11   },
12   'cd' => {
13     data_type => 'integer',
14   },
15   'position' => {
16     data_type => 'integer',
17     accessor => 'pos',
18   },
19   'title' => {
20     data_type => 'varchar',
21     size      => 100,
22   },
23 );
24 __PACKAGE__->set_primary_key('trackid');
25
26 __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' );
27 __PACKAGE__->belongs_to( disc => 'DBICTest::Schema::CD' => 'cd');
28
29 1;