aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/061_include_responses_in_tracks.rb9
-rw-r--r--db/schema.rb2
2 files changed, 10 insertions, 1 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
diff --git a/db/schema.rb b/db/schema.rb
index 3212913c8..7c94e4622 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 60) do
+ActiveRecord::Schema.define(:version => 61) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false