From 6bded6bc80303ea4c6da21534a4cea0f4136e9f8 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 4 May 2015 14:24:21 +0300 Subject: [PATCH] Added registrar code to seeds --- db/seeds.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 892cc9dfe..e5b0367c7 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -9,7 +9,8 @@ registrar1 = Registrar.where( state: 'Harju maakond', zip: '11415', email: 'registrar1@example.com', - country_code: 'EE' + country_code: 'EE', + code: 'REG1' ).first_or_create! ApiUser.where( @@ -28,7 +29,8 @@ registrar2 = Registrar.where( state: 'Harju maakond', zip: '11315', email: 'registrar2@example.com', - country_code: 'EE' + country_code: 'EE', + code: 'REG2' ).first_or_create! ApiUser.where( @@ -102,5 +104,6 @@ Registrar.where( city: 'Tallinn', street: 'Paldiski mnt 80', zip: '10617', - url: 'www.internet.ee' + url: 'www.internet.ee', + code: 'EIS' ).first_or_create!