From 6126e44c6bae7cb2256f804dbaeb7120b82174a3 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 24 Jul 2017 15:39:06 +0100 Subject: [PATCH] Final changes to schema an upgrade --- lib/Pear/LocalLoop/Schema.pm | 2 +- lib/Pear/LocalLoop/Schema/Result/Feedback.pm | 2 +- templates/admin/feedback/index.html.ep | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Pear/LocalLoop/Schema.pm b/lib/Pear/LocalLoop/Schema.pm index 5ac03e0..7fea66a 100644 --- a/lib/Pear/LocalLoop/Schema.pm +++ b/lib/Pear/LocalLoop/Schema.pm @@ -6,7 +6,7 @@ use warnings; use base 'DBIx::Class::Schema'; -our $VERSION = 1; +our $VERSION = 2; __PACKAGE__->load_namespaces; diff --git a/lib/Pear/LocalLoop/Schema/Result/Feedback.pm b/lib/Pear/LocalLoop/Schema/Result/Feedback.pm index 2d741ae..7d990b6 100644 --- a/lib/Pear/LocalLoop/Schema/Result/Feedback.pm +++ b/lib/Pear/LocalLoop/Schema/Result/Feedback.pm @@ -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" }, diff --git a/templates/admin/feedback/index.html.ep b/templates/admin/feedback/index.html.ep index 375ed5a..c25a176 100644 --- a/templates/admin/feedback/index.html.ep +++ b/templates/admin/feedback/index.html.ep @@ -15,10 +15,7 @@ % for my $feedback (@$feedbacks) {
- %= $feedback->user->email -
-
- %= $feedback->submitted_at + <%= $feedback->user->email %> <%= $feedback->submitted_at %>
% }