-
-
Notifications
You must be signed in to change notification settings - Fork 360
override default templates #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can open a pull request adding new templates. However, I'm looking into introduce a per migration transaction by default. So if a single migration fails everything gets rolled back and migration process stops right there. Yet this is not within the scope of v0.9.0, but I always appreciate pull request ;) |
Related to #216 |
Would it be an option to do |
No, but we look to extend db-migrate to support real templates for migrations and make them extensible. |
Btw. the question raised at the beginning also included they want to use this to enforce the usage of transactions. Actually db-migrate always place a transaction begin and commit before and after every migration. |
closed in favour of #514 |
Hi,
Love this module!
Question: Is there way to override the default templates used for migrations?
We use postgres and always include a begin and commit statement in our migrations. Just want to add it to the default.
Thanks
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8395534-override-default-templates?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).The text was updated successfully, but these errors were encountered: