From fa41834a2dff1624cc4dbb9d535ab41d88e224d8 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 18 Jan 2013 20:24:53 +0600 Subject: [PATCH] [refs #838] add new file_store system user --- db/seeds.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 540cfb7ae..25fcb79af 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -4,8 +4,7 @@ ARCHES.each do |arch| Arch.find_or_create_by_name arch end -user = User.new uname: 'rosa_system', email: 'rosa_system@rosalinux.ru', password: SecureRandom.base64 -user.confirmed_at, user.role = Time.now.utc, 'system'; user.save - -user = User.new uname: 'iso_worker_1', email: 'iso_worker_1@rosalinux.ru', password: SecureRandom.base64 -user.confirmed_at, user.role = Time.now.utc, 'system'; user.save +%w(rosa_system iso_worker_1 file_store).each do |uname| + user = User.new uname: uname, email: "#{uname}@rosalinux.ru", password: SecureRandom.base64 + user.confirmed_at, user.role = Time.now.utc, 'system'; user.save +end \ No newline at end of file