Fixed initial setup.
This commit is contained in:
parent
7478cbef98
commit
849cb66a37
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ class CreateMacro < ActiveRecord::Migration
|
|||
end
|
||||
add_index :macros, [:name], unique: true
|
||||
|
||||
# return if it's a new setup
|
||||
return if !Setting.find_by(name: 'system_init_done')
|
||||
|
||||
UserInfo.current_user_id = 1
|
||||
Macro.create_or_update(
|
||||
name: 'Close & Tag as Spam',
|
||||
|
|
Loading…
Reference in a new issue