Commit | Line | Data |
0905dc0e |
1 | package DBIx::Class::DeploymentHandler::WithStandardVersionStorage; |
2 | use Moose::Role; |
3 | |
9deabd1f |
4 | # ABSTRACT: Delegate/Role for DBIx::Class::DeploymentHandler::VersionStorage::Standard |
5 | |
0905dc0e |
6 | use DBIx::Class::DeploymentHandler::VersionStorage::Standard; |
7 | |
8 | has version_storage => ( |
9 | does => 'DBIx::Class::DeploymentHandler::HandlesVersionStorage', |
10 | is => 'ro', |
fe3b6dff |
11 | builder => '_build_version_storage', |
0905dc0e |
12 | handles => 'DBIx::Class::DeploymentHandler::HandlesVersionStorage', |
13 | ); |
14 | |
15 | sub _build_version_storage { |
16 | DBIx::Class::DeploymentHandler::VersionStorage::Standard |
17 | ->new({ schema => $_[0]->schema }); |
18 | } |
19 | |
20 | 1; |
21 | |
e52174e3 |
22 | # vim: ts=2 sw=2 expandtab |
0905dc0e |
23 | |
e52174e3 |
24 | __END__ |