File Coverage

blib/lib/Pinto/Schema/Result/Ancestry.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1 54     54   106670 use utf8;
  54         137  
  54         594  
2              
3             package Pinto::Schema::Result::Ancestry;
4              
5             # Created by DBIx::Class::Schema::Loader
6             # DO NOT MODIFY THE FIRST PART OF THIS FILE
7              
8              
9 54     54   2326 use strict;
  54         131  
  54         1250  
10 54     54   327 use warnings;
  54         119  
  54         1590  
11              
12 54     54   276 use Moose;
  54         128  
  54         660  
13 54     54   349474 use MooseX::NonMoose;
  54         10342  
  54         448  
14 54     54   759450 use MooseX::MarkAsMethods autoclean => 1;
  54         165  
  54         549  
15             extends 'DBIx::Class::Core';
16              
17              
18             __PACKAGE__->table("ancestry");
19              
20              
21             __PACKAGE__->add_columns(
22             "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
23             "parent", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
24             "child", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
25             );
26              
27              
28             __PACKAGE__->set_primary_key("id");
29              
30              
31             __PACKAGE__->belongs_to(
32             "child",
33             "Pinto::Schema::Result::Revision",
34             { id => "child" },
35             { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" },
36             );
37              
38              
39             __PACKAGE__->belongs_to(
40             "parent",
41             "Pinto::Schema::Result::Revision",
42             { id => "parent" },
43             { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" },
44             );
45              
46              
47             with 'Pinto::Role::Schema::Result';
48              
49             # Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-02-27 14:20:24
50             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NAFcD1cZ00q/UhZ15CEYUg
51              
52             #-------------------------------------------------------------------------------
53              
54             # ABSTRACT: Represents the relationship between revisions
55              
56             #-----------------------------------------------------------------------------
57              
58             our $VERSION = '0.14'; # VERSION
59              
60             #-----------------------------------------------------------------------------
61              
62             __PACKAGE__->meta->make_immutable;
63              
64             #-----------------------------------------------------------------------------
65             1;
66              
67             __END__
68              
69             =pod
70              
71             =encoding UTF-8
72              
73             =for :stopwords Jeffrey Ryan Thalhammer
74              
75             =head1 NAME
76              
77             Pinto::Schema::Result::Ancestry - Represents the relationship between revisions
78              
79             =head1 VERSION
80              
81             version 0.14
82              
83             =head1 NAME
84              
85             Pinto::Schema::Result::Ancestry
86              
87             =head1 TABLE: C<ancestry>
88              
89             =head1 ACCESSORS
90              
91             =head2 id
92              
93             data_type: 'integer'
94             is_auto_increment: 1
95             is_nullable: 0
96              
97             =head2 parent
98              
99             data_type: 'integer'
100             is_foreign_key: 1
101             is_nullable: 0
102              
103             =head2 child
104              
105             data_type: 'integer'
106             is_foreign_key: 1
107             is_nullable: 0
108              
109             =head1 PRIMARY KEY
110              
111             =over 4
112              
113             =item * L</id>
114              
115             =back
116              
117             =head1 RELATIONS
118              
119             =head2 child
120              
121             Type: belongs_to
122              
123             Related object: L<Pinto::Schema::Result::Revision>
124              
125             =head2 parent
126              
127             Type: belongs_to
128              
129             Related object: L<Pinto::Schema::Result::Revision>
130              
131             =head1 L<Moose> ROLES APPLIED
132              
133             =over 4
134              
135             =item * L<Pinto::Role::Schema::Result>
136              
137             =back
138              
139             =head1 AUTHOR
140              
141             Jeffrey Ryan Thalhammer <jeff@stratopan.com>
142              
143             =head1 COPYRIGHT AND LICENSE
144              
145             This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
146              
147             This is free software; you can redistribute it and/or modify it under
148             the same terms as the Perl 5 programming language system itself.
149              
150             =cut