diff options
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index c354fb3af..101773a30 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -4,17 +4,17 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.4 2007-09-10 18:58:43 francis Exp $ +# $Id: info_request.rb,v 1.5 2007-09-11 15:23:59 francis Exp $ class InfoRequest < ActiveRecord::Base + validates_presence_of :title + belongs_to :user - belongs_to :public_body - has_many :outgoing_message +# validates_presence_of :user_id -# validates_presence_of :user -# validates_numericality_of :user - validates_presence_of :title + belongs_to :public_body validates_presence_of :public_body_id + has_many :outgoing_message end |