| 1 | 63 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 63 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 63 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 63 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 63 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 63 | ▶ | use MooseX::MarkAsMethods autoclean => 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 63 | extends 'DBIx::Class::Core'; | |
| 16 | |||
| 17 | |||
| 18 | 63 | __PACKAGE__->table("ancestry"); | |
| 19 | |||
| 20 | |||
| 21 | 63 | __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 | 63 | __PACKAGE__->set_primary_key("id"); | |
| 29 | |||
| 30 | |||
| 31 | 63 | __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 | 63 | __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 | 63 | 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 | 63 | our $VERSION = '0.14'; # VERSION | |
| 59 | |||
| 60 | #----------------------------------------------------------------------------- | ||
| 61 | |||
| 62 | 63 | __PACKAGE__->meta->make_immutable; | |
| 63 | |||
| 64 | #----------------------------------------------------------------------------- | ||
| 65 | 63 | 1; | |
| 66 | |||
| 67 | __END__ | ||