scinote-web/db/migrate/20221007113010_add_label_template_units.rb

18 lines
366 B
Ruby
Raw Normal View History

# 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