Fixed bug: ObjectManager attributes are added twice when running all migrations and seeds.
This commit is contained in:
parent
3300381f41
commit
d5161405c0
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue