diff --git a/db/seeds.rb b/db/seeds.rb index 289662b77..bf2bea5d6 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -39,7 +39,6 @@ def get_users_emails_and_passwords end def create_users - puts "create users" @users ||= begin all_users = { @@ -68,7 +67,6 @@ def create_users end def create_teams - puts "create teams" @teams ||= begin all_teams = { @@ -175,7 +173,6 @@ def initialize(setup) end def create_populated_projects - puts 'create populated projects' projects_params = [ { title: "#{teams[:main_team_a][:name]} / [a] Main User: Main Team", @@ -340,9 +337,12 @@ def get_url_for_some_fact_checks(index) puts "Stretch your legs, this might take a while" puts "On a mac took about 10 minutes to create all populated workspaces" +puts "—————" begin + puts 'Creating users and teams...' setup = Setup.new(answer.presence) # .presence : returns nil or the string + puts 'Creating projects for all users...' PopulatedProjects.new(setup).create_populated_projects rescue RuntimeError => e if e.message.include?('We could not parse this link')