Fixed for initial setup.
This commit is contained in:
parent
2d715c713b
commit
943d015ae9
1 changed files with 165 additions and 164 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue