diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/censor_rule.rb | 19 | ||||
-rw-r--r-- | app/models/comment.rb | 4 | ||||
-rw-r--r-- | app/models/contact_validator.rb | 4 | ||||
-rw-r--r-- | app/models/incoming_message.rb | 4 | ||||
-rw-r--r-- | app/models/info_request.rb | 4 | ||||
-rw-r--r-- | app/models/info_request_event.rb | 4 | ||||
-rw-r--r-- | app/models/outgoing_message.rb | 4 | ||||
-rw-r--r-- | app/models/post_redirect.rb | 4 | ||||
-rw-r--r-- | app/models/public_body.rb | 4 | ||||
-rw-r--r-- | app/models/public_body_tag.rb | 4 | ||||
-rw-r--r-- | app/models/raw_email.rb | 6 | ||||
-rw-r--r-- | app/models/track_thing.rb | 4 | ||||
-rw-r--r-- | app/models/track_things_sent_email.rb | 4 | ||||
-rw-r--r-- | app/models/user.rb | 4 | ||||
-rw-r--r-- | app/models/user_info_request_sent_alert.rb | 4 |
15 files changed, 47 insertions, 30 deletions
diff --git a/app/models/censor_rule.rb b/app/models/censor_rule.rb index acc4349e6..a0606c4f8 100644 --- a/app/models/censor_rule.rb +++ b/app/models/censor_rule.rb @@ -1,10 +1,27 @@ +# == Schema Information +# Schema version: 68 +# +# Table name: censor_rules +# +# id :integer not null, primary key +# info_request_id :integer +# user_id :integer +# public_body_id :integer +# text :text not null +# replacement :text not null +# last_edit_editor :string(255) not null +# last_edit_comment :text not null +# created_at :datetime not null +# updated_at :datetime not null +# + # models/censor_rule.rb: # Stores alterations to remove specific data from requests. # # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: censor_rule.rb,v 1.1 2008-10-27 18:18:30 francis Exp $ +# $Id: censor_rule.rb,v 1.2 2008-10-28 13:04:20 francis Exp $ class CensorRule < ActiveRecord::Base belongs_to :info_request diff --git a/app/models/comment.rb b/app/models/comment.rb index e4b995f32..a69284ae7 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: comments # @@ -19,7 +19,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: comment.rb,v 1.7 2008-10-02 23:11:40 francis Exp $ +# $Id: comment.rb,v 1.8 2008-10-28 13:04:20 francis Exp $ class Comment < ActiveRecord::Base belongs_to :user diff --git a/app/models/contact_validator.rb b/app/models/contact_validator.rb index ff6d3ad49..4898616f6 100644 --- a/app/models/contact_validator.rb +++ b/app/models/contact_validator.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: contact_validators # @@ -15,7 +15,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: contact_validator.rb,v 1.22 2008-09-22 22:16:37 francis Exp $ +# $Id: contact_validator.rb,v 1.23 2008-10-28 13:04:20 francis Exp $ class ContactValidator < ActiveRecord::BaseWithoutTable column :name, :string diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 3869df55b..dbebf35a6 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: incoming_messages # @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.156 2008-10-28 10:08:08 francis Exp $ +# $Id: incoming_message.rb,v 1.157 2008-10-28 13:04:20 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 95eee2854..6ca53bdea 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: info_requests # @@ -23,7 +23,7 @@ # 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.148 2008-10-28 10:08:08 francis Exp $ +# $Id: info_request.rb,v 1.149 2008-10-28 13:04:20 francis Exp $ require 'digest/sha1' require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian') diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index b60dfad7e..3a882e0c6 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: info_request_events # @@ -21,7 +21,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request_event.rb,v 1.64 2008-10-28 10:08:47 francis Exp $ +# $Id: info_request_event.rb,v 1.65 2008-10-28 13:04:20 francis Exp $ class InfoRequestEvent < ActiveRecord::Base belongs_to :info_request diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb index 54c665d8f..4ca0d391d 100644 --- a/app/models/outgoing_message.rb +++ b/app/models/outgoing_message.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: outgoing_messages # @@ -21,7 +21,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.70 2008-10-28 10:08:08 francis Exp $ +# $Id: outgoing_message.rb,v 1.71 2008-10-28 13:04:20 francis Exp $ class OutgoingMessage < ActiveRecord::Base belongs_to :info_request diff --git a/app/models/post_redirect.rb b/app/models/post_redirect.rb index 44cbfbe41..3f7f168e2 100644 --- a/app/models/post_redirect.rb +++ b/app/models/post_redirect.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: post_redirects # @@ -26,7 +26,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: post_redirect.rb,v 1.41 2008-09-22 22:16:37 francis Exp $ +# $Id: post_redirect.rb,v 1.42 2008-10-28 13:04:20 francis Exp $ require 'openssl' # for random bytes function diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 7af379124..8aa092c11 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: public_bodies # @@ -24,7 +24,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body.rb,v 1.115 2008-10-20 00:52:26 francis Exp $ +# $Id: public_body.rb,v 1.116 2008-10-28 13:04:20 francis Exp $ require 'csv' require 'set' diff --git a/app/models/public_body_tag.rb b/app/models/public_body_tag.rb index e343b2116..b168adc1f 100644 --- a/app/models/public_body_tag.rb +++ b/app/models/public_body_tag.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: public_body_tags # @@ -15,7 +15,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body_tag.rb,v 1.19 2008-09-22 22:16:37 francis Exp $ +# $Id: public_body_tag.rb,v 1.20 2008-10-28 13:04:20 francis Exp $ class PublicBodyTag < ActiveRecord::Base validates_presence_of :public_body diff --git a/app/models/raw_email.rb b/app/models/raw_email.rb index f4f22d122..46f25c21f 100644 --- a/app/models/raw_email.rb +++ b/app/models/raw_email.rb @@ -1,10 +1,10 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: raw_emails # # id :integer not null, primary key -# data :text +# data :text not null # # models/raw_email.rb: @@ -13,7 +13,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: raw_email.rb,v 1.2 2008-09-22 22:16:37 francis Exp $ +# $Id: raw_email.rb,v 1.3 2008-10-28 13:04:20 francis Exp $ class RawEmail < ActiveRecord::Base has_one :incoming_message diff --git a/app/models/track_thing.rb b/app/models/track_thing.rb index 9a4f8d79f..b9cb0771d 100644 --- a/app/models/track_thing.rb +++ b/app/models/track_thing.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: track_things # @@ -21,7 +21,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: track_thing.rb,v 1.43 2008-09-22 22:16:37 francis Exp $ +# $Id: track_thing.rb,v 1.44 2008-10-28 13:04:20 francis Exp $ class TrackThing < ActiveRecord::Base belongs_to :tracking_user, :class_name => 'User' diff --git a/app/models/track_things_sent_email.rb b/app/models/track_things_sent_email.rb index 4c6ddba19..525651929 100644 --- a/app/models/track_things_sent_email.rb +++ b/app/models/track_things_sent_email.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: track_things_sent_emails # @@ -18,7 +18,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: track_things_sent_email.rb,v 1.13 2008-09-22 22:16:37 francis Exp $ +# $Id: track_things_sent_email.rb,v 1.14 2008-10-28 13:04:20 francis Exp $ class TrackThingsSentEmail < ActiveRecord::Base belongs_to :info_request_event diff --git a/app/models/user.rb b/app/models/user.rb index 072cca50a..162d86d35 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: users # @@ -22,7 +22,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user.rb,v 1.73 2008-10-02 23:11:40 francis Exp $ +# $Id: user.rb,v 1.74 2008-10-28 13:04:20 francis Exp $ require 'digest/sha1' diff --git a/app/models/user_info_request_sent_alert.rb b/app/models/user_info_request_sent_alert.rb index 7dd1ecf01..a265387ca 100644 --- a/app/models/user_info_request_sent_alert.rb +++ b/app/models/user_info_request_sent_alert.rb @@ -1,5 +1,5 @@ # == Schema Information -# Schema version: 67 +# Schema version: 68 # # Table name: user_info_request_sent_alerts # @@ -17,7 +17,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_info_request_sent_alert.rb,v 1.24 2008-09-22 22:16:37 francis Exp $ +# $Id: user_info_request_sent_alert.rb,v 1.25 2008-10-28 13:04:20 francis Exp $ class UserInfoRequestSentAlert < ActiveRecord::Base belongs_to :user |