From 516c117bf94453c26d4fa04d9855863ce2f5532c Mon Sep 17 00:00:00 2001 From: jon siragusa Date: Mon, 26 Sep 2016 11:26:56 -0400 Subject: [PATCH] Remove addition of local migration path This seems to be causing an `ActiveRecord:DuplicateMigrationNameError` because `rake db:migrate` sees the migration in the local gem migration directory as well as the copied migration. --- lib/coupons/engine.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/coupons/engine.rb b/lib/coupons/engine.rb index 06a278ac..18a1fe83 100644 --- a/lib/coupons/engine.rb +++ b/lib/coupons/engine.rb @@ -4,10 +4,6 @@ class Engine < Rails::Engine initializer 'coupons.append_migrations' do |app| next if app.root.to_s == root.to_s - - config.paths['db/migrate'].expanded.each do |path| - app.config.paths['db/migrate'].push(path) - end end initializer 'coupons.assets' do |app|