Strong Migrations

Catch unsafe migrations in development
Icons/chart bar
Used 59 times
Created by
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"
Comments

Sign up or Login to leave a comment.