blib/lib/DBIx/Class/Schema/AuditLog/Structure/Field.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
« blib/lib/DBIx/Class/Schema/AuditLog/Structure/Changeset.pm ↑ Summary blib/lib/DBIx/Class/Schema/AuditLog/Structure/User.pm »
1 package DBIx::Class::Schema::AuditLog::Structure::Field;
2 12 $DBIx::Class::Schema::AuditLog::Structure::Field::VERSION = '0.6.2';
3 12 ▶use base 'DBIx::Class::Schema::AuditLog::Structure::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 12 __PACKAGE__->table('audit_log_field');
9  
10 12 __PACKAGE__->add_columns(
11 'id' => {
12 'data_type' => 'integer',
13 'is_auto_increment' => 1,
14 'is_nullable' => 0,
15 },
16 'audited_table_id' => {
17 'data_type' => 'integer',
18 'is_nullable' => 0,
19 },
20 'name' => {
21 'data_type' => 'varchar',
22 'is_nullable' => 0,
23 'size' => 40,
24 },
25 );
26  
27 12 __PACKAGE__->set_primary_key('id');
28  
29 12 __PACKAGE__->belongs_to(
30 'AuditedTable',
31 'DBIx::Class::Schema::AuditLog::Structure::AuditedTable',
32 { 'foreign.id' => 'self.audited_table_id' },
33 );
34  
35 12 __PACKAGE__->has_many(
36 'Change',
37 'DBIx::Class::Schema::AuditLog::Structure::Change',
38 { 'foreign.field_id' => 'self.id' },
39 );
40  
41 12 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 DBIx::Class::Schema::AuditLog::Structure::Field
52  
53 =head1 VERSION
54  
55 version 0.6.2
56  
57 =head1 AUTHOR
58  
59 Mark Jubenville <ioncache@cpan.org>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2012 by Mark Jubenville.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« blib/lib/DBIx/Class/Schema/AuditLog/Structure/Changeset.pm ↑ Summary blib/lib/DBIx/Class/Schema/AuditLog/Structure/User.pm »