diff options
author | Dave Arter <davea@mysociety.org> | 2016-09-06 15:37:42 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-09-09 14:14:37 +0100 |
commit | 54a2b63fac54d01914fd2bb456da483e6982ee21 (patch) | |
tree | 574fe83a0dcf2cba219d32f440f44cde1dbc3132 /perllib/FixMyStreet/DB/Result/Body.pm | |
parent | f8f870be0f9f648b48896cb6411446b7f9e049ce (diff) |
Refactor problem response priority into its own model
This moves the response priority values from a cobrand-specific method to a full
DB model, and includes management screens in the admin for administering them.
For mysociety/fixmystreetforcouncils#66
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Body.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Body.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Body.pm b/perllib/FixMyStreet/DB/Result/Body.pm index a2e004c6a..037b69352 100644 --- a/perllib/FixMyStreet/DB/Result/Body.pm +++ b/perllib/FixMyStreet/DB/Result/Body.pm @@ -87,6 +87,12 @@ __PACKAGE__->belongs_to( }, ); __PACKAGE__->has_many( + "response_priorities", + "FixMyStreet::DB::Result::ResponsePriority", + { "foreign.body_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); +__PACKAGE__->has_many( "response_templates", "FixMyStreet::DB::Result::ResponseTemplate", { "foreign.body_id" => "self.id" }, @@ -106,8 +112,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07035 @ 2015-02-19 16:13:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d6GuQm8vrNmCc4NWw58srA +# Created by DBIx::Class::Schema::Loader v0.07035 @ 2016-09-06 15:33:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZuzscnLqcx0k512cTZ/kdg sub url { my ( $self, $c, $args ) = @_; |