Skip to content
Terraforming legacy Rails applications guides and tools
Branch: master
Clone or download
Latest commit a0e5b7f Jul 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets chore: add banner image Apr 25, 2019
examples examples: docker upd readme Jul 12, 2019
guides Update Jul 15, 2019
tools 👮 markdown link Jul 11, 2019
LICENSE license: personal -> em Apr 25, 2019 examples: add docker env config Jul 12, 2019

Terraforming Rails

A collection of tools and guides to help you turn legacy code into legendary code.

Based on the RailsConf 2019 talk "Terraforming legacy Rails applications" (slides, video).

Sponsored by Evil Martians


Unrealesed scripts

These scripts have been created during the development of different Rails projects at Evil Martians.

They're not universal enough to be extracted into libraries (some depend on particular Rails version or rely on project-specific assumptions), but they could be used a starting point for building tools for your project.



  • TestProf – analyze and improve test suite performance



Dead code elimination

  • traceroute – detect unused routes/controller actions
  • factory_trace – detect unused FactoryBot factories/traits


  • anyway_config – transparently use multiple sources of configuration at once

Automation Tools

  • lefthook – language-agnostic git hook manager
  • danger – code review automation helper
  • pronto – linters runner to run checks only for the relevant changes


  • CircleCI — example CircleCI configuration files
  • Docker for Dev — example Docker for development configuration



The code is available as open source under the terms of the MIT License.

You can’t perform that action at this time.