Skip to content

Instantly share code, notes, and snippets.

View mainangethe's full-sized avatar

Ng'ethe Maina mainangethe

  • Mradi Kenya
  • Nairobi Kenya
View GitHub Profile
@mainangethe
mainangethe / database_migration_best_practices.md
Created May 13, 2021 00:33 — forked from HelioCampos/database_migration_best_practices.md
Database migration best practices for Rails

Database migration best practices for Rails

Never ever change data on schema changes! [1]

Use rake tasks to change the data! [1]

This decouples a deployment from completed migrations. Give us control of the data manipulation proccess by encapsulatin it in on place. need to remember to:

  1. Run it in one of the ways bellow: a. Add this rake task the deployment script or;

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@mainangethe
mainangethe / Git-CheatSheet.md
Last active July 29, 2018 13:27 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet