aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/041_index_requests_with_solr.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/041_index_requests_with_solr.rb b/db/migrate/041_index_requests_with_solr.rb
index 6c6f161c9..f18b947a6 100644
--- a/db/migrate/041_index_requests_with_solr.rb
+++ b/db/migrate/041_index_requests_with_solr.rb
@@ -1,9 +1,11 @@
class IndexRequestsWithSolr < ActiveRecord::Migration
def self.up
add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
+ add_index :info_requests, :solr_up_to_date
end
def self.down
+ remove_index :info_requests, :solr_up_to_date
remove_column :info_requests, :solr_up_to_date
end
end