summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-21 16:32:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-21 16:32:27 +0000
commit15c7066ddefdc684cb3132a68e2ecf70296eefcf (patch)
tree671ebfce2c86cf4fbf5031e1f7876ec1cbeb7136 /lib
parent0a6f936626f4af6857bdbdd9a13a4b8afb513d01 (diff)
downloadredmine-15c7066ddefdc684cb3132a68e2ecf70296eefcf.tar.gz
redmine-15c7066ddefdc684cb3132a68e2ecf70296eefcf.zip
Plugin migration directory should use plugin directory (#14402).
git-svn-id: http://svn.redmine.org/redmine/trunk@14364 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/plugin.rb2
1 files changed, 1 insertions, 1 deletions
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 (<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