rosa-build/db/seeds.rb

13 lines
503 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
2011-11-02 08:22:27 +00:00
ARCHES = %w(i386 i586 x86_64)
2011-03-12 14:15:30 +00:00
ARCHES.each do |arch|
Arch.find_or_create_by_name arch
end
%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
2013-04-01 15:49:57 +01:00
admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'ABFrulez!!!'
admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save