Small improvements.
This commit is contained in:
parent
1167f7a457
commit
cfd5b52fb9
1 changed files with 16 additions and 24 deletions
26
db/seeds.rb
26
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,14 +1270,18 @@ 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' )
|
||||||
|
organizations = Organization.all
|
||||||
|
groups = Group.all
|
||||||
|
org_community = Organization.create_if_not_exists(
|
||||||
|
:name => 'Zammad Foundation',
|
||||||
|
)
|
||||||
|
user_community = User.create_or_update(
|
||||||
:login => 'nicole.braun@zammad.org',
|
:login => 'nicole.braun@zammad.org',
|
||||||
:firstname => 'Nicole',
|
:firstname => 'Nicole',
|
||||||
:lastname => 'Braun',
|
:lastname => 'Braun',
|
||||||
|
@ -1296,8 +1289,7 @@ user_community = User.create_if_not_exists(
|
||||||
:password => '',
|
:password => '',
|
||||||
:active => true,
|
:active => true,
|
||||||
:roles => roles,
|
:roles => roles,
|
||||||
# :groups => groups,
|
:organization_id => org_community.id,
|
||||||
:organizations => organizations,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
Link::Type.create_if_not_exists( :name => 'normal' )
|
Link::Type.create_if_not_exists( :name => 'normal' )
|
||||||
|
|
Loading…
Reference in a new issue