diff --git a/db/seeds/development/1_people.rb b/db/seeds/development/1_people.rb index 4cfa8fe1b..3e143881b 100644 --- a/db/seeds/development/1_people.rb +++ b/db/seeds/development/1_people.rb @@ -36,6 +36,16 @@ def amount(role_type) seeder.seed_all_roles root = Group.root + devs.each do |name, email| seeder.seed_developer(name, email, root, Group::Bund::MitarbeiterGs) end + +# Seed Max Mustermann, Fidelio as Abteilungsleiter Pfadi Patria +patria = Group.find_by_name('Patria') +seeder.seed_developer('Max Mustermann', 'fidelio@pfadipatria.com', patria, Group::Abteilung::Abteilungsleitung) +seeder.seed_role(Person.find_by_email('fidelio@pfadipatria.com'), patria, Group::Abteilung::Abteilungsleitung) + +person = Person.find_by_email('fidelio@pfadipatria.com') +person.nickname = 'Fidelio' +person.save