mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
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:
parent
89614b75d5
commit
36e061e3bb
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue