[ARVADOS] updated: 11b48e1b182cef419918d4df1a4998001d665a9a
git at public.curoverse.com
git at public.curoverse.com
Tue May 6 23:17:07 EDT 2014
Summary of changes:
services/api/Rakefile | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
via 11b48e1b182cef419918d4df1a4998001d665a9a (commit)
from 69141a18be1821daf4816046e65b2aea75a975be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 11b48e1b182cef419918d4df1a4998001d665a9a
Author: Tom Clegg <tom at curoverse.com>
Date: Tue May 6 23:15:40 2014 -0400
Refuse to run rake tasks without "bundle exec".
Otherwise you can accidentally load (or dump) schemas without having
the pg_power gem loaded, which will leave you with incorrect indexes
in your database (or schema.rb).
diff --git a/services/api/Rakefile b/services/api/Rakefile
index 17d5fe7..223f5ca 100644
--- a/services/api/Rakefile
+++ b/services/api/Rakefile
@@ -4,4 +4,10 @@
require File.expand_path('../config/application', __FILE__)
+begin
+ ok = PgPower
+rescue
+ abort "Hm, pg_power is missing. Make sure you use 'bundle exec rake ...'"
+end
+
Server::Application.load_tasks
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list