aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Alert.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-03 19:38:26 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-03 19:38:26 +0100
commite26bc99396d3eaefc3fd7d81c010dc4028767690 (patch)
tree85e2a957dbfc5fa96e9d9f8ae72e90f8fac8646c /perllib/FixMyStreet/DB/Result/Alert.pm
parentfcf474b5effdab93eecf7193d314a5c4b284cc9d (diff)
parent5e3cc91d5c7cb3c48418cf26064de2ba214e6567 (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Alert.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Alert.pm16
1 files changed, 14 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Alert.pm b/perllib/FixMyStreet/DB/Result/Alert.pm
index e0017b94d..b99c83a45 100644
--- a/perllib/FixMyStreet/DB/Result/Alert.pm
+++ b/perllib/FixMyStreet/DB/Result/Alert.pm
@@ -45,15 +45,27 @@ __PACKAGE__->add_columns(
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to(
+ "alert_type",
+ "FixMyStreet::DB::Result::AlertType",
+ { ref => "alert_type" },
+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+);
+__PACKAGE__->belongs_to(
"user",
"FixMyStreet::DB::Result::User",
{ id => "user_id" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
+__PACKAGE__->has_many(
+ "alert_sents",
+ "FixMyStreet::DB::Result::AlertSent",
+ { "foreign.alert_id" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
-# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-05-24 15:32:43
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MV8kPZiQVJH7coYT4FmXLg
+# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-06-03 16:48:36
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NlyhWyg0NrH5/kZYYO36qg
# You can replace this text with custom code or comments, and it will be preserved on regeneration