From: Jean-Philippe Lang Date: Sun, 21 Jun 2015 16:32:27 +0000 (+0000) Subject: Plugin migration directory should use plugin directory (#14402). X-Git-Tag: 3.1.0~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15c7066ddefdc684cb3132a68e2ecf70296eefcf;p=redmine.git Plugin migration directory should use plugin directory (#14402). git-svn-id: http://svn.redmine.org/redmine/trunk@14364 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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