Sha256: 7452956eb1ebffe2a5f878ac373808f609e4312ec0afd5f49fdb988a77bf85c7
Contents?: true
Size: 984 Bytes
Versions: 1
Compression:
Stored size: 984 Bytes
Contents
class CreateUnidomEan13Barcodes < ActiveRecord::Migration[6.0] def change create_table :unidom_ean_13_barcodes, id: :uuid do |t| t.column :code, 'char(13)', null: false, default: '0'*13 t.column :gs1_prefix, 'char(3)', null: false, default: '0'*3 t.string :company_number, null: false, default: '0'*3, limit: 8 t.string :item_reference, null: false, default: '0'*2, limit: 6 t.column :check_digit, 'char(1)', null: false, default: '0' t.column :state, 'char(1)', null: false, default: Unidom::Common::STATE t.datetime :opened_at, null: false, default: Unidom::Common::OPENED_AT t.datetime :closed_at, null: false, default: Unidom::Common::CLOSED_AT t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_ean_13_barcodes, :code, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-article_number-3.0.1 | db/migrate/20020102000000_create_unidom_ean_13_barcodes.rb |