updated seed file with new data

This commit is contained in:
Priit Tamboom 2014-10-24 18:15:23 +03:00
parent 37c6bf1f8c
commit 52594cbedc

View file

@ -10,46 +10,46 @@ Country.where(name: 'Estonia', iso: 'EE').first_or_create!
Country.where(name: 'Latvia', iso: 'LV').first_or_create! Country.where(name: 'Latvia', iso: 'LV').first_or_create!
zone = Registrar.where( zone = Registrar.where(
name: 'Zonedata AS', name: 'Registrar First AS',
reg_no: '10300220', reg_no: '10300220',
address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415', address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415',
country: Country.first country: Country.first
).first_or_create ).first_or_create
EppUser.where( EppUser.where(
username: 'zone', username: 'registrar1',
password: 'ghyt9e4fu', password: 'test1',
active: true, active: true,
registrar: zone registrar: zone
).first_or_create ).first_or_create
elkdata = Registrar.where( elkdata = Registrar.where(
name: 'Elkservers OÜ', name: 'Registrar Second AS',
reg_no: '10529229', reg_no: '10529229',
address: 'Vabaduse pst 32, 11316 Tallinn', address: 'Vabaduse pst 32, 11316 Tallinn',
country: Country.first country: Country.first
).first_or_create ).first_or_create
EppUser.where( EppUser.where(
username: 'elkdata', username: 'registrar2',
password: '8932iods', password: 'test2',
active: true, active: true,
registrar: elkdata registrar: elkdata
).first_or_create ).first_or_create
User.where( User.where(
username: 'gitlab', username: 'user1',
password: '12345', password: 'test1',
email: 'info@gitlab.eu', email: 'user1@example.ee',
admin: true, admin: true,
identity_code: '37810013855', identity_code: '37810013855',
country: Country.where(name: 'Estonia').first country: Country.where(name: 'Estonia').first
).first_or_create ).first_or_create
User.where( User.where(
username: 'zone', username: 'user2',
password: '54321', password: 'test2',
email: 'zone-info@example.ee', email: 'user2@example.ee',
admin: false, admin: false,
identity_code: '37810010085', identity_code: '37810010085',
registrar_id: zone.id, registrar_id: zone.id,
@ -57,9 +57,9 @@ User.where(
).first_or_create ).first_or_create
User.where( User.where(
username: 'elkdata', username: 'user3',
password: '32154', password: 'test3',
email: 'elk-info@example.ee', email: 'user3@example.ee',
admin: false, admin: false,
identity_code: '37810010727', identity_code: '37810010727',
registrar_id: elkdata.id, registrar_id: elkdata.id,