From da7b2af159b2c21f1836dab82b35b0c5efb8e68e Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Wed, 23 Oct 2013 18:13:29 +0200 Subject: [PATCH] Used more specific initializer step --- lib/open_project/global_roles/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_project/global_roles/engine.rb b/lib/open_project/global_roles/engine.rb index 3235a66af3..7f9e7a1716 100644 --- a/lib/open_project/global_roles/engine.rb +++ b/lib/open_project/global_roles/engine.rb @@ -60,7 +60,7 @@ module OpenProject::GlobalRoles app.routes_reloader.paths.uniq! end - initializer :append_migrations do |app| + initializer 'global_roles.append_migrations' do |app| unless app.root.to_s.match root.to_s config.paths["db/migrate"].expanded.each do |expanded_path| app.config.paths["db/migrate"] << expanded_path