mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
17 lines
366 B
Ruby
17 lines
366 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddLabelTemplateUnits < ActiveRecord::Migration[6.1]
|
|
def up
|
|
change_table :label_templates, bulk: true do |t|
|
|
t.integer :unit, default: 0
|
|
t.integer :density, default: 12
|
|
end
|
|
end
|
|
|
|
def down
|
|
change_table :label_templates, bulk: true do |t|
|
|
t.remove :unit
|
|
t.remove :density
|
|
end
|
|
end
|
|
end
|