From 7d99513b56314b8bcb4d1fb0b48e9988f4f26bc1 Mon Sep 17 00:00:00 2001 From: dokkom Date: Mon, 27 Apr 2015 21:59:45 +0200 Subject: [PATCH] fidelio seed, works only in pbs wagon. (Dominic, Peter) --- db/seeds/development/1_people.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/db/seeds/development/1_people.rb b/db/seeds/development/1_people.rb index 4cfa8fe1b..a5a665ce5 100644 --- a/db/seeds/development/1_people.rb +++ b/db/seeds/development/1_people.rb @@ -36,6 +36,18 @@ def amount(role_type) seeder.seed_all_roles root = Group.root + +# 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 + devs.each do |name, email| seeder.seed_developer(name, email, root, Group::Bund::MitarbeiterGs) end + +