mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
Merge remote-tracking branch 'origin/registry-515' into registry-475
This commit is contained in:
commit
e14bac337e
4 changed files with 141 additions and 34 deletions
34
db/seeds.rb
34
db/seeds.rb
|
@ -1,36 +1,2 @@
|
|||
# This file should contain all the record creation needed to seed the database with its default values.
|
||||
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
registrar = Registrar.create!(
|
||||
name: 'Test',
|
||||
reg_no: '1234',
|
||||
street: 'test',
|
||||
city: 'test',
|
||||
state: 'test',
|
||||
zip: '1234',
|
||||
email: 'test@domain.tld',
|
||||
country_code: 'US',
|
||||
code: 'US1'
|
||||
)
|
||||
|
||||
registrar.accounts.create!(account_type: Account::CASH, currency: 'EUR')
|
||||
|
||||
ApiUser.create!(
|
||||
username: 'test',
|
||||
password: 'testtest',
|
||||
identity_code: '51001091072',
|
||||
active: true,
|
||||
registrar: registrar,
|
||||
roles: ['super']
|
||||
)
|
||||
|
||||
AdminUser.create!(
|
||||
username: 'test',
|
||||
email: 'test@domain.tld',
|
||||
password: 'testtest',
|
||||
password_confirmation: 'testtest',
|
||||
country_code: 'US',
|
||||
roles: ['admin']
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue