Strong Migrations
Catch unsafe migrations in development
Used 59 times
A
Andrew Mason
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/z5Os8K"
Template Source
Review the code before running this template on your machine.
def do_bundle
Bundler.with_unbundled_env { run "bundle install" }
end
run "bundle add strong_migrations"
do_bundle
run "rails generate strong_migrations:install"