Glific v0.3.1 Glific.Seeds.SeedsDev View Source

Script for populating the database. We can call this from tests and/or /priv/repo

Link to this section Summary

Functions

Function to populate some basic data that we need for the system to operate. We will split this function up into multiple different ones for test, dev and production

Smaller functions to seed various tables. This allows the test functions to call specific seeder functions. In the next phase we will also add unseeder functions as we learn more of the test capabilities

Link to this section Functions

Specs

seed() :: nil

Function to populate some basic data that we need for the system to operate. We will split this function up into multiple different ones for test, dev and production

Link to this function

seed_tag(organization \\ nil)

View Source

Specs

seed_tag(Glific.Partners.Organization.t() | nil) :: nil

Smaller functions to seed various tables. This allows the test functions to call specific seeder functions. In the next phase we will also add unseeder functions as we learn more of the test capabilities