aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorfrancis <francis>2008-02-21 15:18:45 +0000
committerfrancis <francis>2008-02-21 15:18:45 +0000
commit7e98f4c55fa9d90f6d0d9136e122c45c43a976fa (patch)
treeb8f2cd8d1e8f8a5f58ac1e769de65b819b810153 /db
parent50de468e4d5d255a769cc23fded2050ebdac7cb0 (diff)
Auto complete for public body search.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/034_run_solr_indexing.rb8
-rw-r--r--db/schema.rb2
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/034_run_solr_indexing.rb b/db/migrate/034_run_solr_indexing.rb
new file mode 100644
index 000000000..8a697905c
--- /dev/null
+++ b/db/migrate/034_run_solr_indexing.rb
@@ -0,0 +1,8 @@
+class RunSolrIndexing < ActiveRecord::Migration
+ def self.up
+ PublicBody.rebuild_solr_index
+ end
+
+ def self.down
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ff159b5c4..4037e75cf 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 => 33) do
+ActiveRecord::Schema.define(:version => 34) do
create_table "incoming_messages", :force => true do |t|
t.integer "info_request_id", :null => false