aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/061_include_responses_in_tracks.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-08-07 00:24:51 +0000
committerfrancis <francis>2008-08-07 00:24:51 +0000
commit1dbc9d75f482296468defc99041eb7174b62a40c (patch)
tree40352412aa9797573413bcb32d7626a64123c9c1 /db/migrate/061_include_responses_in_tracks.rb
parent3967bf5b0e791f6af426da394a1e9e3d1e707163 (diff)
Feeds/alerts for authorities and users now includes responses and followups as
well as original requests. Add RSS autodetection.
Diffstat (limited to 'db/migrate/061_include_responses_in_tracks.rb')
-rw-r--r--db/migrate/061_include_responses_in_tracks.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/061_include_responses_in_tracks.rb b/db/migrate/061_include_responses_in_tracks.rb
new file mode 100644
index 000000000..f357e57c2
--- /dev/null
+++ b/db/migrate/061_include_responses_in_tracks.rb
@@ -0,0 +1,9 @@
+class IncludeResponsesInTracks < ActiveRecord::Migration
+ def self.up
+ TrackThing.update_all "track_query = replace(track_query, 'variety:sent ', '') where track_type in ('public_body_updates', 'user_updates')"
+ end
+
+ def self.down
+ # XXX forget it
+ end
+end