Fixed initial setup.
This commit is contained in:
parent
791c0f934c
commit
58de72cfc1
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ class CreateChat < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
add_index :chat_agents, [:created_by_id], unique: true
|
add_index :chat_agents, [:created_by_id], unique: true
|
||||||
|
|
||||||
|
# return if it's a new setup
|
||||||
|
return if !Setting.find_by(name: 'system_init_done')
|
||||||
|
|
||||||
Role.create_if_not_exists(
|
Role.create_if_not_exists(
|
||||||
name: 'Chat',
|
name: 'Chat',
|
||||||
note: 'Access to chat feature.',
|
note: 'Access to chat feature.',
|
||||||
|
|
Loading…
Reference in a new issue