Added registrar code to seeds

This commit is contained in:
Priit Tark 2015-05-04 14:24:21 +03:00
parent 2e4bf0ee6e
commit 6bded6bc80

View file

@ -9,7 +9,8 @@ registrar1 = Registrar.where(
state: 'Harju maakond', state: 'Harju maakond',
zip: '11415', zip: '11415',
email: 'registrar1@example.com', email: 'registrar1@example.com',
country_code: 'EE' country_code: 'EE',
code: 'REG1'
).first_or_create! ).first_or_create!
ApiUser.where( ApiUser.where(
@ -28,7 +29,8 @@ registrar2 = Registrar.where(
state: 'Harju maakond', state: 'Harju maakond',
zip: '11315', zip: '11315',
email: 'registrar2@example.com', email: 'registrar2@example.com',
country_code: 'EE' country_code: 'EE',
code: 'REG2'
).first_or_create! ).first_or_create!
ApiUser.where( ApiUser.where(
@ -102,5 +104,6 @@ Registrar.where(
city: 'Tallinn', city: 'Tallinn',
street: 'Paldiski mnt 80', street: 'Paldiski mnt 80',
zip: '10617', zip: '10617',
url: 'www.internet.ee' url: 'www.internet.ee',
code: 'EIS'
).first_or_create! ).first_or_create!