Final changes to schema an upgrade
This commit is contained in:
parent
09f9cf9d48
commit
6126e44c6b
3 changed files with 3 additions and 6 deletions
|
@ -6,7 +6,7 @@ use warnings;
|
||||||
|
|
||||||
use base 'DBIx::Class::Schema';
|
use base 'DBIx::Class::Schema';
|
||||||
|
|
||||||
our $VERSION = 1;
|
our $VERSION = 2;
|
||||||
|
|
||||||
__PACKAGE__->load_namespaces;
|
__PACKAGE__->load_namespaces;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ __PACKAGE__->add_columns(
|
||||||
|
|
||||||
__PACKAGE__->set_primary_key("id");
|
__PACKAGE__->set_primary_key("id");
|
||||||
|
|
||||||
_PACKAGE__->belongs_to(
|
__PACKAGE__->belongs_to(
|
||||||
"user",
|
"user",
|
||||||
"Pear::LocalLoop::Schema::Result::User",
|
"Pear::LocalLoop::Schema::Result::User",
|
||||||
{ id => "user_id" },
|
{ id => "user_id" },
|
||||||
|
|
|
@ -15,10 +15,7 @@
|
||||||
% for my $feedback (@$feedbacks) {
|
% for my $feedback (@$feedbacks) {
|
||||||
<a href="<%= url_for . '/' . $feedback->id %>" class="list-group-item list-group-item-action">
|
<a href="<%= url_for . '/' . $feedback->id %>" class="list-group-item list-group-item-action">
|
||||||
<div>
|
<div>
|
||||||
%= $feedback->user->email
|
<%= $feedback->user->email %> <%= $feedback->submitted_at %>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
%= $feedback->submitted_at
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
% }
|
% }
|
||||||
|
|
Reference in a new issue