Fixed for initial setup.

This commit is contained in:
Martin Edenhofer 2014-06-10 09:16:18 +02:00
parent 2d715c713b
commit 943d015ae9

View file

@ -1,8 +1,9 @@
class UpdateTicketReplace2 < ActiveRecord::Migration class UpdateTicketReplace2 < ActiveRecord::Migration
def up def up
overview_role = Role.where( :name => 'Agent' ).first
if overview_role
Overview.destroy_all Overview.destroy_all
UserInfo.current_user_id = 1 UserInfo.current_user_id = 1
overview_role = Role.where( :name => 'Agent' ).first
Overview.create_if_not_exists( Overview.create_if_not_exists(
:name => 'My assigned Tickets', :name => 'My assigned Tickets',
:link => 'my_assigned', :link => 'my_assigned',
@ -169,7 +170,7 @@ Overview.create_if_not_exists(
:view_mode_default => 's', :view_mode_default => 's',
}, },
) )
end
end end
def down def down