Fixed initial setup.
This commit is contained in:
parent
3b0a2ba87a
commit
4258bf88b2
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
class UpdateOverview3 < ActiveRecord::Migration
|
||||
def up
|
||||
|
||||
# return if it's a new setup
|
||||
return if !Setting.find_by(name: 'system_init_done')
|
||||
|
||||
UserInfo.current_user_id = 1
|
||||
overview_role = Role.where( name: 'Agent' ).first
|
||||
Overview.create_or_update(
|
||||
|
|
Loading…
Reference in a new issue