Ecto.Migration.before_commit

You're seeing just the callback before_commit, go back to Ecto.Migration module for more information.
Link to this callback

before_commit()

View Source (optional)

Specs

before_commit() :: term()

Migration code to run immediately before the transaction is closed.

Keep in mind that it is treated like any normal migration code, and should consider both the up and down cases of the migration.