Skip to content

Commit

Permalink
probably bad instructions on resolving migration conflicts (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvn committed Aug 23, 2018
1 parent bba2181 commit b26b7bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ You will now also need to update your `.env` file to make sure you're using this

If you need to reset this database, rerun step 2 (with `dropdb foundation` as first command) through 5 to get back to a clean copy of the production database.


### Resolving conflicting Django migrations

**AKA: What to do when a migration lands before yours**

- Create a new, separate local instance of `foundation` per "Setup steps" above.
- Check out your new PR branch locally.
- Delete *all* your PR's migrations and commit the deletion.
- Run `inv makemigrations`
- Commit the newly generated migration.
- Run `inv migrate` to verify and run new migration.
- Push changes to your PR branch.

### Running the project for front-end development

- At the root of the project you can run: `npm start`, which will start the server as well as watch tasks for recompiling changes to JS(X) and Sass files.
Expand Down

0 comments on commit b26b7bd

Please sign in to comment.