Patch #14402 ยป migration_directory.patch
lib/redmine/plugin.rb | ||
---|---|---|
403 | 403 | |
404 | 404 |
# The directory containing this plugin's migrations (<tt>plugin/db/migrate</tt>) |
405 | 405 |
def migration_directory |
406 |
File.join(Rails.root, 'plugins', id.to_s, 'db', 'migrate')
|
|
406 |
File.join(directory, 'db', 'migrate')
|
|
407 | 407 |
end |
408 | 408 | |
409 | 409 |
# Returns the version number of the latest migration for this plugin. Returns |