diff options
author | francis <francis> | 2007-09-11 15:23:59 +0000 |
---|---|---|
committer | francis <francis> | 2007-09-11 15:23:59 +0000 |
commit | 5f27823f513d12cb798b8b0b2c7cb603aa07ed62 (patch) | |
tree | f8d1230f682c4970e87adc9a2b32f552ed2a4942 /app/models/info_request.rb | |
parent | 0b6b75b9f5034aae926622fcf2bfd2cc08f34ecc (diff) |
Reorder constraints in models to be in roughly same order as in db/schema.rb
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 |