Skip to content

Commit

Permalink
Use Migration#root_directory instead of hard-coded Rails.root
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Sep 25, 2015
1 parent d95b37a commit 0ee330d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_groonga/migration.rb
Expand Up @@ -64,7 +64,7 @@ def migrate(direction)

private
def report(message)
relative_path = @path.relative_path_from(Rails.root)
relative_path = @path.relative_path_from(root_directory)
text = "#{@version} #{name} (#{relative_path}): #{message}"
rest_length = [0, 75 - text.length].max
puts("== #{text} #{'=' * rest_length}")
Expand Down

0 comments on commit 0ee330d

Please sign in to comment.