Skip to content

Instantly share code, notes, and snippets.

View spencerneste's full-sized avatar
🏋️‍♀️

Spencer Neste spencerneste

🏋️‍♀️
  • Toro TMS
  • Los Angeles, CA
View GitHub Profile
@messanjah
messanjah / structure_in_conflict
Last active January 21, 2019 14:16
Steps to commit a cleanly merged db/structure.sql file
Dealing with conflicts to db/structure.sql (when merging master)
$ git checkout master
# Change database.yml to point to database: clean (on localhost) in development env
# In one command:
# 1) drops the database specified in database.yml for current env ('clean' database)
# 2) creates a db with name specified in database.yml
# 3) loads master's structure into the database specified in database.yml