2015-09-11 13:47:37 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# inital data set as extention to db/seeds.rb
|
2016-01-19 22:30:23 +00:00
|
|
|
|
|
|
|
# create email address and apply it to all groups
|
2015-09-11 13:47:37 +00:00
|
|
|
email_address = EmailAddress.create_if_not_exists(
|
|
|
|
realname: 'Zammad',
|
|
|
|
email: 'zammad@localhost',
|
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1
|
|
|
|
)
|
|
|
|
Group.all.each {|group|
|
|
|
|
group.email_address_id = email_address.id
|
|
|
|
group.save
|
|
|
|
}
|