From 5f27823f513d12cb798b8b0b2c7cb603aa07ed62 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 11 Sep 2007 15:23:59 +0000 Subject: Reorder constraints in models to be in roughly same order as in db/schema.rb --- app/models/info_request.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/models/info_request.rb') 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 -- cgit v1.2.3