Anyway to run migration in migration or transaction block? #3378
Unanswered
abdulalalalalala
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to perform migration in a transaction block, such as:
The reason for asking this because I ran into a unique use case when doing database seeding: I wanted to get insert some records that are unique and relatively static. That means the "insertion" above should only happen ONCE. However, it's not all static, because there is "app_name", for example as
String
the developers define in the .env file.It can be "my_app__name_dev" or "my_app_name_prod" or whatever.
Beta Was this translation helpful? Give feedback.
All reactions