initial import of DBIx-Class-InflateColumn-IP 0.02000 from CPAN
[dbsrgits/DBIx-Class-InflateColumn-IP.git] / t / lib / DBICTest / Schema / Host.pm
CommitLineData
3a889a03 1package # hide from PAUSE
2 DBICTest::Schema::Host;
3
4use base qw/DBIx::Class/;
5
6__PACKAGE__->load_components(qw/InflateColumn::IP Core/);
7__PACKAGE__->table('host');
8
9__PACKAGE__->add_columns(
10 hostname => {
11 data_type => 'text',
12 is_nullable => 0,
13 },
14 address => {
15 data_type => 'integer',
16 is_nullable => 0,
17 is_ip => 1,
18 ip_format => 'numeric',
19 }
20);
21
22__PACKAGE__->set_primary_key('hostname');
23__PACKAGE__->add_unique_constraint(address => [ qw/address/ ]);
24
251;