Label template migration fix (#4523)

* Fix migration for label template

* Fix label template migration

* Fix migration

* Fix migration

* Add default to label template migration
This commit is contained in:
ajugo 2022-10-12 15:47:10 +02:00 committed by GitHub
parent 89614b75d5
commit 36e061e3bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,8 @@ class UpdateLabelTemplates < ActiveRecord::Migration[6.1]
width_mm: 25.4,
height_mm: 12.7,
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
team: team
team: team,
default: true
)
ZebraLabelTemplate.create!(
@ -30,7 +31,8 @@ class UpdateLabelTemplates < ActiveRecord::Migration[6.1]
width_mm: 25.4,
height_mm: 12.7,
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
team: team
team: team,
default: true
)
end
end