aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/041_index_requests_with_solr.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/041_index_requests_with_solr.rb b/db/migrate/041_index_requests_with_solr.rb
new file mode 100644
index 000000000..6c6f161c9
--- /dev/null
+++ b/db/migrate/041_index_requests_with_solr.rb
@@ -0,0 +1,9 @@
+class IndexRequestsWithSolr < ActiveRecord::Migration
+ def self.up
+ add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false
+ end
+
+ def self.down
+ remove_column :info_requests, :solr_up_to_date
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 58ddb696d..2965f7090 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 => 40) do
+ActiveRecord::Schema.define(:version => 41) do
create_table "incoming_messages", :force => true do |t|
t.integer "info_request_id", :null => false
@@ -37,6 +37,7 @@ ActiveRecord::Schema.define(:version => 40) do
t.boolean "awaiting_description", :default => false, :null => false
t.string "prominence", :default => "normal", :null => false
t.text "url_title", :null => false
+ t.boolean "solr_up_to_date", :default => false, :null => false
end
add_index "info_requests", ["created_at"], :name => "index_info_requests_on_created_at"