blob: 8b95e6604bfbf80af574fb39304bdc31189cc67b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# -*- encoding : utf-8 -*-
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
|