diff options
author | francis <francis> | 2007-09-11 06:42:40 +0000 |
---|---|---|
committer | francis <francis> | 2007-09-11 06:42:40 +0000 |
commit | 92dcf1bcb7f487f814c9ffe5b242d9216bdce9a2 (patch) | |
tree | 032a63727b6033d6c20306ff1e6605abed58cff7 | |
parent | ed595eb5da0a6dcc4f96778151d430293cbf2895 (diff) |
Doesn't need public_body in model, as well as not in db.
-rw-r--r-- | app/models/outgoing_message.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb index 186bb2147..07a916b73 100644 --- a/app/models/outgoing_message.rb +++ b/app/models/outgoing_message.rb @@ -5,7 +5,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: outgoing_message.rb,v 1.1 2007-09-10 18:58:43 francis Exp $ +# $Id: outgoing_message.rb,v 1.2 2007-09-11 06:42:40 francis Exp $ class OutgoingMessage < ActiveRecord::Base belongs_to :info_request @@ -14,7 +14,6 @@ class OutgoingMessage < ActiveRecord::Base validates_presence_of :body validates_inclusion_of :status, :in => ['ready', 'sent', 'failed'] - belongs_to :public_body validates_inclusion_of :message_type, :in => ['initial_request'] #, 'complaint'] belongs_to :recipient, :polymorphic => true |