Fixed bug: ObjectManager attributes are added twice when running all migrations and seeds.

This commit is contained in:
Thorsten Eckel 2017-04-28 15:39:29 +02:00
parent 3300381f41
commit d5161405c0

View file

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