Interchange6-Schema
view release on metacpan or search on metacpan
lib/Interchange6/Schema.pm view on Meta::CPAN
=head1 METHODS
=head2 deploy
Overload L<DBIx::Class::Schema/deploy> in order to add some core fixtures
via L<Interchange6::Schema::Populate>.
=cut
{
use Interchange6::Schema::Populate;
sub deploy {
my $self = shift;
my $new = $self->next::method(@_);
Interchange6::Schema::Populate->new( schema => $self )->populate;
# $self->resultset('Website')->create(
# {
# fqdn => "*",
# name => "Default",
# description => "Default Website"
# }
# );
}
}
1;
__END__
=head1 CREATE SQL FILES FOR DATABASE SCHEMA
This command creates SQL files for our database schema
in the F<sql/> directory:
interchange6-create-database
=head1 POLICY FOR RELATIONSHIP ACCESSORS
=over 4
=item All lower case
=item Singular names for belongs_to and has_one relationships
=item Pluralised names for many_to_many and has_many relationships
=item Use underscores for things like C<shipment_destinations>.
=back
=head1 AUTHORS
Stefan Hornburg (Racke), C<racke@linuxia.de>
Peter Mottram, C<peter@sysnix.com>
Jeff Boes, C<jeff@endpoint.com>
Sam Batschelet C<sbatschelet@mac.com>
=head1 CONTRIBUTORS
Kaare Rasmussen
Šimun Kodžoman
Grega Pompe
=head1 LICENSE AND COPYRIGHT
Copyright 2013-2014 Stefan Hornburg (Racke), Jeff Boes.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
( run in 1.675 second using v1.01-cache-2.11-cpan-524268b4103 )