From def6c92125dd8defe9e968f26d438d46d358242a Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 27 Mar 2013 15:13:19 +0100 Subject: [PATCH] Don't error out on micro migrations on production --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 1c36edac..29502405 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,11 @@ require 'bundler/setup' ENV['SCHEMA'] = "#{Gem.loaded_specs['travis-core'].full_gem_path}/db/schema.rb" -require 'micro_migrations' +begin + require 'micro_migrations' +rescue LoadError + # we can't load micro migrations on production +end require 'travis' begin