Skip to content

Commit

Permalink
Update lib/ecto/migration.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski authored Aug 22, 2023
1 parent 621e83e commit 4b80fa6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ecto/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,12 @@ defmodule Ecto.Migration do
utilizes advisory locks to faciliate running migrations one at a time even
across multiple nodes. For example:
## Config file
### Config file (PostgreSQL)
# Config the Repo (PostgreSQL example)
config MyApp.Repo, migration_lock: :pg_advisory_lock
## Migration file
### Migration file
# Migrate with your concurrent operation
defmodule MyRepo.Migrations.CreateIndexes do
use Ecto.Migration
@disable_ddl_transaction true
Expand Down

0 comments on commit 4b80fa6

Please sign in to comment.