readme updates from Georg questions

This commit is contained in:
Priit Tamboom 2014-11-25 10:08:44 +02:00
parent ea2b64bc69
commit 98be3c54c3
2 changed files with 30 additions and 8 deletions

View file

@ -9,7 +9,7 @@
Country.where(name: 'Estonia', iso: 'EE').first_or_create!
Country.where(name: 'Latvia', iso: 'LV').first_or_create!
zone = Registrar.where(
registrar1 = Registrar.where(
name: 'Registrar First AS',
reg_no: '10300220',
address: 'Pärnu mnt 2, Tallinna linn, Harju maakond, 11415',
@ -20,10 +20,10 @@ EppUser.where(
username: 'registrar1',
password: 'test1',
active: true,
registrar: zone
registrar: registrar1
).first_or_create
elkdata = Registrar.where(
registrar2 = Registrar.where(
name: 'Registrar Second AS',
reg_no: '10529229',
address: 'Vabaduse pst 32, 11316 Tallinn',
@ -34,7 +34,7 @@ EppUser.where(
username: 'registrar2',
password: 'test2',
active: true,
registrar: elkdata
registrar: registrar2
).first_or_create
User.where(
@ -52,7 +52,7 @@ User.where(
email: 'user2@example.ee',
admin: false,
identity_code: '37810010085',
registrar_id: zone.id,
registrar_id: registrar1.id,
country: Country.where(name: 'Estonia').first
).first_or_create
@ -62,7 +62,7 @@ User.where(
email: 'user3@example.ee',
admin: false,
identity_code: '37810010727',
registrar_id: elkdata.id,
registrar_id: registrar2.id,
country: Country.where(name: 'Estonia').first
).first_or_create