Skip to content

Run migration(skip if applied) when start avram is connecting. #1710

Answered by jwoertink
zw963 asked this question in Q&A
Discussion options

You must be logged in to vote

You can either make lucky_tasks a required dependency, then add a tasks.cr in your app root like a Lucky project would do, or you can run the migrations from code with

Avram::Migrator::Runner.new.run_pending_migrations

That will always try to run migrations. You may need to require your migration directory as well.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jwoertink
Comment options

@zw963
Comment options

@jwoertink
Comment options

@zw963
Comment options

@jwoertink
Comment options

Answer selected by zw963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants