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';
|
||||
|
||||
our $VERSION = 1;
|
||||
our $VERSION = 2;
|
||||
|
||||
__PACKAGE__->load_namespaces;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ __PACKAGE__->add_columns(
|
|||
|
||||
__PACKAGE__->set_primary_key("id");
|
||||
|
||||
_PACKAGE__->belongs_to(
|
||||
__PACKAGE__->belongs_to(
|
||||
"user",
|
||||
"Pear::LocalLoop::Schema::Result::User",
|
||||
{ id => "user_id" },
|
||||
|
|
|
@ -15,10 +15,7 @@
|
|||
% for my $feedback (@$feedbacks) {
|
||||
<a href="<%= url_for . '/' . $feedback->id %>" class="list-group-item list-group-item-action">
|
||||
<div>
|
||||
%= $feedback->user->email
|
||||
</div>
|
||||
<div>
|
||||
%= $feedback->submitted_at
|
||||
<%= $feedback->user->email %> <%= $feedback->submitted_at %>
|
||||
</div>
|
||||
</a>
|
||||
% }
|
||||
|
|
Reference in a new issue