Fixed initial setup.

This commit is contained in:
Martin Edenhofer 2015-10-15 22:40:23 +02:00
parent 7478cbef98
commit 849cb66a37

View file

@ -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',