Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix folder name - tmp/migrated
  • Loading branch information
ka8725 authored Feb 9, 2024
1 parent 3b5c4ad commit d2f9912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ With `actual_db_schema` gem you don't need to care about that anymore. It saves

### How it solves the issue

This gem stores all run migrations with their code in the `tmp/migrations` folder. Whenever you perform a schema dump, it rolls back the *phantom migrations*.
This gem stores all run migrations with their code in the `tmp/migrated` folder. Whenever you perform a schema dump, it rolls back the *phantom migrations*.

The *phantom migrations* list is the difference between the migrations you've executed (in the `tmp/migrations` folder) and the current ones (in the `db/migrate` folder).
The *phantom migrations* list is the difference between the migrations you've executed (in the `tmp/migrated` folder) and the current ones (in the `db/migrate` folder).

Therefore, all you do is run rails `db:migrate` in your current branch. `actual_db_schema` will ensure the DB schema is up-to-date. You'll never have an inaccurate `schema.rb` file again.

Expand Down

0 comments on commit d2f9912

Please sign in to comment.