Schema/Result/Feed.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema.pm ↑ Summary Schema/Result/FeedTagMap.pm »
1 package IronMan::Schema::Result::Feed;
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use base qw/DBIx::Class::Core/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 __PACKAGE__->table('feed');
7 4 __PACKAGE__->add_columns(
8 id => {
9 data_type => 'varchar',
10 size => 255,
11 },
12 url => {
13 data_type => 'varchar',
14 size => 1024,
15 is_nullable => 1,
16 },
17 link => {
18 data_type => 'varchar',
19 size => 1024,
20 is_nullable => 1,
21 },
22 title => {
23 data_type => 'varchar',
24 size => 1024,
25 is_nullable => 1,
26 },
27 owner => {
28 data_type => 'varchar',
29 size => 255,
30 },
31 );
32 4 __PACKAGE__->set_primary_key(qw/id/);
33 4 __PACKAGE__->add_unique_constraint(url => ['url']);
34 4 __PACKAGE__->has_many('posts' => 'IronMan::Schema::Result::Post', 'feed_id');
35  
36 4 __PACKAGE__->has_many('posts', 'IronMan::Schema::Result::Post', 'feed_id');
37  
38 4 1;
« Schema.pm ↑ Summary Schema/Result/FeedTagMap.pm »