diff options
author | Francis Irving <francis@mysociety.org> | 2010-06-09 08:09:00 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-06-09 08:09:00 +0100 |
commit | d238c53445933b7abc9b31304b353dcd2a922e4f (patch) | |
tree | d84f295d46fe707b53a2831b59ce7635889338e1 | |
parent | 03bbf5f3530ae929b1136e2f7d8d99e7b567f631 (diff) |
Add index to create_at for track sent, so can remove old ones / only use
new ones
-rw-r--r-- | db/migrate/083_add_indices_track_sent.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/083_add_indices_track_sent.rb b/db/migrate/083_add_indices_track_sent.rb new file mode 100644 index 000000000..2b0908af8 --- /dev/null +++ b/db/migrate/083_add_indices_track_sent.rb @@ -0,0 +1,9 @@ +class AddIndicesTrackSent < ActiveRecord::Migration + def self.up + add_index :track_things_sent_emails, :created_at + end + + def self.down + remove_index :track_things_sent_emails, :created_at + end +end |