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|
|
2015-01-26 13:52:48 +00:00
|
|
|
Arch.find_or_create_by(name: arch)
|
2011-03-12 14:15:30 +00:00
|
|
|
end
|
2012-11-02 17:21:28 +00:00
|
|
|
|
2013-01-18 14:24:53 +00:00
|
|
|
%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
|
2013-03-29 12:30:22 +00:00
|
|
|
end
|
|
|
|
|
2013-04-01 20:59:57 +01:00
|
|
|
admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'admin_user'
|
2013-04-03 13:10:22 +01:00
|
|
|
admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save
|