@@ -1,5 +1,9 @@
class ObjectManagerUpdateUser < 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
ObjectManager::Attribute.add(
force: true,