Skip to content

Create one user with assigned role per each of the user roles in seeds.#41

Open
fstybel wants to merge 1 commit intoarkency:masterfrom
fstybel:40-seed-user-with-roles
Open

Create one user with assigned role per each of the user roles in seeds.#41
fstybel wants to merge 1 commit intoarkency:masterfrom
fstybel:40-seed-user-with-roles

Conversation

@fstybel
Copy link
Copy Markdown

@fstybel fstybel commented Feb 6, 2020

I added loop on each of roles in User model. The loop will create one user per each of role.
Email for created users have pattern: user_#{role_name}@example.com

Closes #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

User from seed don't have roles

1 participant