diff options
author | francis <francis> | 2008-03-06 10:33:45 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-06 10:33:45 +0000 |
commit | f3c4eb0a94502c072efec4acbe80c89416586aba (patch) | |
tree | b839efa63ca80844f87fc178f808d4f38c1fb028 | |
parent | 8d7934d991e93097c981676630ac63a4465b96b5 (diff) |
Index the solr freshness boolean
-rw-r--r-- | db/migrate/041_index_requests_with_solr.rb | 2 |
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 |