Using under() for the migration didn't make sense
This commit is contained in:
parent
2489940171
commit
fab89aa92e
|
@ -35,11 +35,10 @@ helper message => sub {
|
||||||
state $message = GuestbookNg::Model::Message->new(pg => shift->pg)
|
state $message = GuestbookNg::Model::Message->new(pg => shift->pg)
|
||||||
};
|
};
|
||||||
|
|
||||||
# Routes
|
# Get the DB ready
|
||||||
under sub ($c) {
|
app->pg->migrations->from_dir('migrations')->migrate(1);
|
||||||
$c->pg->migrations->from_dir('migrations')->migrate(1)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
# Routes
|
||||||
get '/' => sub ($c) {
|
get '/' => sub ($c) {
|
||||||
my $posts = $c->message->get_posts();
|
my $posts = $c->message->get_posts();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user