SeedHelper (Migration SeedHelper v0.1.0)
Summary
Functions
Begin a seeding session. This should be called in your priv/migrations/seed.exs file.
End a seeding session. This should be called in your priv/migrations/seed.exs file.
Get a handle to a value for use in seeds (like default_organization_id)
Macro to conditionally execute a block of code based on the current build environment
Queue block until all required seeds have been applied.
Execute block if seed has not been applied yet (and build env in options[:only]
if set)
Set a handle to a value for reference by other seeds.
Functions
begin_session()
Begin a seeding session. This should be called in your priv/migrations/seed.exs file.
end_session()
End a seeding session. This should be called in your priv/migrations/seed.exs file.
handle(handle, default \\ nil)
Get a handle to a value for use in seeds (like default_organization_id)
Macro to conditionally execute a block of code based on the current build environment
Queue block until all required seeds have been applied.
Execute block if seed has not been applied yet (and build env in options[:only]
if set)
set_handle(handle, value)
Set a handle to a value for reference by other seeds.