Triplex v1.2.0-rc.0 Mix.Triplex View Source
Useful functions for any triplex mix task.
Here is the list of tasks we have for now:
mix triplex.gen.migration
- generates a tenant migration for the repomix triplex.migrate
- runs the repository tenant migrationsmix triplex.migrations
- displays the repository migration statusmix triplex.rollback
- rolls back the repository tenant migrations
Link to this section Summary
Functions
Ensures the migrations path exists for the given repo
Returns the path for your tenant migrations
Link to this section Functions
Ensures the migrations path exists for the given repo
.
You can optionally give us the project config
keyword list, the options we
use are:
apps_path
- this will be used to decide if it is an umbrella project, in this case it never fails, because umbrellas does not have migrations and that’s rightapp_path
- and this will be used to get the full path to the migrations directory, which is relative to this path
Returns the unchanged repo
if succeed or raises a Mix.raise
if it fails.
Returns the path for your tenant migrations.