From 15c7066ddefdc684cb3132a68e2ecf70296eefcf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Jun 2015 16:32:27 +0000 Subject: [PATCH] Plugin migration directory should use plugin directory (#14402). git-svn-id: http://svn.redmine.org/redmine/trunk@14364 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index d41d8eda7..fc29633d6 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -432,7 +432,7 @@ module Redmine #:nodoc: # The directory containing this plugin's migrations (plugin/db/migrate) def migration_directory - File.join(Rails.root, 'plugins', id.to_s, 'db', 'migrate') + File.join(directory, 'db', 'migrate') end # Returns the version number of the latest migration for this plugin. Returns -- 2.39.5