fixup for stringify that can be false in find_or_create_related
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Link.pm
CommitLineData
9c2c91ea 1package # hide from PAUSE
2 DBICTest::Schema::Link;
3
4use base 'DBIx::Class::Core';
5
6use strict;
7use warnings;
8
9__PACKAGE__->load_components(qw/PK::Auto Core/);
10__PACKAGE__->table('link');
11__PACKAGE__->add_columns(
12 'id' => {
13 data_type => 'integer',
14 is_auto_increment => 1
15 },
16 'url' => {
17 data_type => 'varchar',
18 size => 100,
19 is_nullable => 1,
20 },
21 'title' => {
22 data_type => 'varchar',
23 size => 100,
24 is_nullable => 1,
25 },
26);
27__PACKAGE__->set_primary_key('id');
28
29use overload '""' => sub { shift->url }, fallback=> 1;
30
311;