Remove "test user needs createdb privilege" workaround.
authorTom Clegg <tom@clinicalfuture.com>
Thu, 7 Nov 2013 17:20:51 +0000 (09:20 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 7 Nov 2013 17:50:11 +0000 (09:50 -0800)
It doesn't seem to work any more in Rails 3.2. Just accept that your
test user needs to own the test db and have the createdb privilege.

ALTER ROLE arvados_test_user CREATEDB

services/api/Rakefile

index c4b921745fb15fb12d06c86337dc004d4366e3ad..17d5fe7202f6be2c4d0ba04ff9b10a1fead85c3a 100644 (file)
@@ -5,20 +5,3 @@
 require File.expand_path('../config/application', __FILE__)
 
 Server::Application.load_tasks
-
-# http://www.pervasivecode.com/blog/2007/09/22/making-rails-raketest-not-drop-your-pgsql-database/
-#
-# don't drop the test database; migrate it back to 0
-Rake::TaskManager.class_eval do
-  def delete_task(task_name)
-    @tasks.delete(task_name.to_s)
-  end
-  Rake.application.delete_task("db:test:purge")
-end
-namespace :db do
-    namespace :test do
-        task :purge do
-            ActiveRecord::Migrator.migrate("db/migrate/", 0)
-        end
-    end
-end