mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-22 21:15:35 +08:00
25 lines
568 B
Ruby
25 lines
568 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UpdateLabelTemplates < ActiveRecord::Migration[6.1]
|
|
def up
|
|
change_table :label_templates, bulk: true do |t|
|
|
t.string :type
|
|
t.float :width_mm
|
|
t.float :height_mm
|
|
t.remove :format
|
|
t.remove :language_type
|
|
t.remove :size
|
|
end
|
|
end
|
|
|
|
def down
|
|
change_table :label_templates, bulk: true do |t|
|
|
t.remove :type
|
|
t.remove :width_mm
|
|
t.remove :height_mm
|
|
t.string :format, null: false, default: 'ZPL'
|
|
t.integer :language_type
|
|
t.string :size
|
|
end
|
|
end
|
|
end
|