View Source Glific.Seeds.SeedsDev (Glific v5.1.6)
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
@spec 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
@spec 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