7129a25f6f9ad5201d917318c90faa8e0933b78a
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / ProvideSchema / FromCurrent.pm
1 package DBIx::Class::DeploymentHandler::ProvideSchema::SQL::FromCurrent;
2
3 use Moose;
4 with 'DBIx::Class::DeploymentHandler::HandlesProvideSchema';
5
6 has schema => (is=>'ro', required=>1);
7
8 sub migration_schema { shift->schema }
9
10 1;
11
12 # vim: ts=2 sw=2 expandtab
13
14 __END__
15
16 =method schema_for_run_files
17
18   my $schema = $dh->schema_for_run_files;
19
20 Provides a L<DBIx::Class::Schema> object that we can pass to the Perl deploy
21 scripts.  We just return whatever C<$schema> you passed when you instantiated
22 the L<DBIx::Class::DeploymentHandler> object.