Updated seed file

This commit is contained in:
Andres Keskküla 2014-09-30 15:03:08 +03:00
parent 0586babd01
commit 78b534047c
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
.row .row
.col-sm-6 .col-sm-6
%h2.text-center-xs= t('shared.contacts_history') %h2.text-center-xs= t('shared.contacts_history')
= render 'admin/contacts/partials/search' =# render 'search'
.col-sm-6 .col-sm-6
%h2.text-right.text-center-xs %h2.text-right.text-center-xs
= link_to(t('shared.deleted'), admin_contact_versions_path(deleted: true), class: 'btn btn-primary') = link_to(t('shared.deleted'), admin_contact_versions_path(deleted: true), class: 'btn btn-primary')

View file

@ -12,7 +12,8 @@ Country.where(name: 'Latvia', iso: 'LV').first_or_create
zone = Registrar.where( zone = Registrar.where(
name: 'Zone Media OÜ', name: 'Zone Media OÜ',
reg_no: '10577829', reg_no: '10577829',
address: 'Lõõtsa 2, Tallinna linn, Harju maakond, 11415' address: 'Lõõtsa 2, Tallinna linn, Harju maakond, 11415',
country: Country.first
).first_or_create ).first_or_create
EppUser.where(username: 'zone', password: 'ghyt9e4fu', active: true, registrar: zone).first_or_create EppUser.where(username: 'zone', password: 'ghyt9e4fu', active: true, registrar: zone).first_or_create
@ -20,7 +21,8 @@ EppUser.where(username: 'zone', password: 'ghyt9e4fu', active: true, registrar:
elkdata = Registrar.where( elkdata = Registrar.where(
name: 'Elkdata OÜ', name: 'Elkdata OÜ',
reg_no: '10510593', reg_no: '10510593',
address: 'Tondi 51-10, 11316 Tallinn' address: 'Tondi 51-10, 11316 Tallinn',
country: Country.first
).first_or_create ).first_or_create
EppUser.where(username: 'elkdata', password: '8932iods', active: true, registrar: elkdata).first_or_create EppUser.where(username: 'elkdata', password: '8932iods', active: true, registrar: elkdata).first_or_create