diff --git a/db/migrate/20151015000001_create_macro.rb b/db/migrate/20151015000001_create_macro.rb index 21214b7db..acf62ad96 100644 --- a/db/migrate/20151015000001_create_macro.rb +++ b/db/migrate/20151015000001_create_macro.rb @@ -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',