aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-20 12:19:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-20 12:19:21 +0100
commit983ddaff992ba81091360e718c107ab66299cd2d (patch)
treef013b73c4b8294bdf9e6fe5e03aa166683458844 /perllib/FixMyStreet/DB/Result/Problem.pm
parent74d85225002800556105284dcbd5b2d1171afa5c (diff)
Add DB::Questionnaire (and update schema.sql with schema changes).
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index d91e8c324..0dc673f23 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -92,10 +92,16 @@ __PACKAGE__->belongs_to(
{ id => "user_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
+__PACKAGE__->has_many(
+ "questionnaires",
+ "FixMyStreet::DB::Result::Questionnaire",
+ { "foreign.problem_id" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
-# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-05-17 14:18:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LyIl4gkdC2Lo2vuddrEByQ
+# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-05-20 12:11:12
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qY08aYo4JBAg/aVmf/IzqQ
=head2 check_for_errors