You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
498 B
22 lines
498 B
|
|
# an user for administrative purposes |
|
admin = User.create( |
|
:email => 'admin@entrydns.com', |
|
:password => 'garlik1', |
|
:password_confirmation => 'garlik1' |
|
) |
|
admin.confirm! |
|
|
|
for name in Settings.host_domains |
|
entrudns_org = Domain.new(:name => name, :type => 'NATIVE', :user_id => admin.id) |
|
entrudns_org.setup(admin.email) |
|
entrudns_org.save! |
|
end |
|
|
|
# sample user |
|
user = User.create( |
|
:email => 'user@app.com', |
|
:password => 'useruser', |
|
:password_confirmation => 'useruser' |
|
) |
|
user.confirm!
|
|
|