Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Expand data seed #26

Merged
merged 11 commits into from
Nov 20, 2018
Merged

Expand data seed #26

merged 11 commits into from
Nov 20, 2018

Conversation

brascoder
Copy link
Contributor

@brascoder brascoder commented Nov 14, 2018

Address #13

db/seeds.rb Outdated
@@ -131,4 +143,8 @@
end
end

create_administrator if User.where("? = ANY (roles)", ENUMS::USER_ROLES::ADMINISTRATOR).count.zero?
100.times { create_advertiser } if User.where("? = ANY (roles)", ENUMS::USER_ROLES::ADVERTISER).count.zero?
1000.times { create_publisher } if User.where("? = ANY (roles)", ENUMS::USER_ROLES::PUBLISHER).count.zero?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update this to ensure that we have a minimum of 100 advertisers and 1000 publishers.

@hopsoft hopsoft changed the title Expand data seed [WIP] Expand data seed Nov 14, 2018
@hopsoft hopsoft changed the title [WIP] Expand data seed Expand data seed Nov 20, 2018
@hopsoft hopsoft merged commit 1300b80 into gitcoinco:master Nov 20, 2018
hopsoft pushed a commit that referenced this pull request Dec 11, 2018
Expand data seeds.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants