aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/061_include_responses_in_tracks.rb
diff options
context:
space:
mode:
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