DrMark / ultrasphinx

a maintained fork of Evan Weaver's Ultrasphinx code -- see the escape_sql branch

This URL has Read+Write access

DrMark (author)
Tue May 27 20:28:15 -0700 2008
commit  cbe4ef9b00c59e3670e60965595a7c9aa164f914
tree    a5853fb6bb3734a9159977c0240ceefab035bbd5
parent  79378a16423571b9d229e9b30d7de46efec5c5e2
ultrasphinx / install.rb
100755 11 lines (9 sloc) 0.373 kb
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
 
Dir.chdir("#{File.dirname(__FILE__)}/../../..") do
  require 'config/environment'
  if ActiveRecord::Base.connection.instance_variable_get('@config')[:adapter] == 'postgresql'
    puts "Installing PostgreSQL stored procedures"
    with_svn = File.exist?(".svn") ? "--svn" : ""
    exec "script/generate ultrasphinx_migration #{with_svn}"
  end
end