Schema/Result/Tag.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/Result/FeedTagMap.pm ↑ Summary
1 package IronMan::Schema::Result::Tag;
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/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 4 __PACKAGE__->load_components(qw/Core/);
7  
8 4 __PACKAGE__->table('tag');
9 4 __PACKAGE__->add_columns(
10 id => {
11 data_type => 'integer',
12 is_auto_increment => 1,
13 },
14 name => {
15 data_type => 'varchar',
16 size => 1024,
17 },
18 );
19 4 __PACKAGE__->set_primary_key(qw/id/);
20
21 4 __PACKAGE__->has_many( feed_tag_map => 'IronMan::Schema::Result::FeedTagMap', 'tag' );
22 4 __PACKAGE__->many_to_many( feeds => feed_tag_map => 'feed' );
23
24 4 1;
« Schema/Result/FeedTagMap.pm ↑ Summary