Small improvements.
This commit is contained in:
parent
1167f7a457
commit
cfd5b52fb9
1 changed files with 16 additions and 24 deletions
40
db/seeds.rb
40
db/seeds.rb
|
@ -1262,17 +1262,6 @@ Group.create_if_not_exists(
|
||||||
:updated_by_id => 1,
|
:updated_by_id => 1,
|
||||||
:created_by_id => 1
|
:created_by_id => 1
|
||||||
)
|
)
|
||||||
Group.create_if_not_exists(
|
|
||||||
:id => 2,
|
|
||||||
:name => 'Twitter',
|
|
||||||
:note => 'All Tweets.',
|
|
||||||
:updated_by_id => 1,
|
|
||||||
:created_by_id => 1
|
|
||||||
)
|
|
||||||
|
|
||||||
roles = Role.where( :name => 'Customer' )
|
|
||||||
organizations = Organization.all
|
|
||||||
groups = Group.all
|
|
||||||
|
|
||||||
user = User.create_if_not_exists(
|
user = User.create_if_not_exists(
|
||||||
:login => '-',
|
:login => '-',
|
||||||
|
@ -1281,23 +1270,26 @@ user = User.create_if_not_exists(
|
||||||
:email => '',
|
:email => '',
|
||||||
:password => 'root',
|
:password => 'root',
|
||||||
:active => false,
|
:active => false,
|
||||||
:roles => roles,
|
|
||||||
:groups => groups,
|
|
||||||
:organizations => organizations,
|
|
||||||
:updated_by_id => 1,
|
:updated_by_id => 1,
|
||||||
:created_by_id => 1
|
:created_by_id => 1
|
||||||
)
|
)
|
||||||
|
|
||||||
UserInfo.current_user_id = 1
|
UserInfo.current_user_id = 1
|
||||||
user_community = User.create_if_not_exists(
|
roles = Role.where( :name => 'Customer' )
|
||||||
:login => 'nicole.braun@zammad.org',
|
organizations = Organization.all
|
||||||
:firstname => 'Nicole',
|
groups = Group.all
|
||||||
:lastname => 'Braun',
|
org_community = Organization.create_if_not_exists(
|
||||||
:email => 'nicole.braun@zammad.org',
|
:name => 'Zammad Foundation',
|
||||||
:password => '',
|
)
|
||||||
:active => true,
|
user_community = User.create_or_update(
|
||||||
:roles => roles,
|
:login => 'nicole.braun@zammad.org',
|
||||||
# :groups => groups,
|
:firstname => 'Nicole',
|
||||||
:organizations => organizations,
|
:lastname => 'Braun',
|
||||||
|
:email => 'nicole.braun@zammad.org',
|
||||||
|
:password => '',
|
||||||
|
:active => true,
|
||||||
|
:roles => roles,
|
||||||
|
:organization_id => org_community.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
Link::Type.create_if_not_exists( :name => 'normal' )
|
Link::Type.create_if_not_exists( :name => 'normal' )
|
||||||
|
|
Loading…
Reference in a new issue