]> source.dussan.org Git - redmine.git/commitdiff
Plugin migration directory should use plugin directory (#14402).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Jun 2015 16:32:27 +0000 (16:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Jun 2015 16:32:27 +0000 (16:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14364 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/plugin.rb

index d41d8eda739c94891c31197819a388adaf328dc3..fc29633d6b23f4f0270d0d34ee04991b620ca072 100644 (file)
@@ -432,7 +432,7 @@ module Redmine #:nodoc:
 
     # The directory containing this plugin's migrations (<tt>plugin/db/migrate</tt>)
     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