Sha256: e5983bc3d0b4486c7e4be2da95f9c65e81590aef7ae08548707c80306abbe28c
Contents?: true
Size: 943 Bytes
Versions: 26
Compression:
Stored size: 943 Bytes
Contents
class CreateUnidomEan13Barcodes < ActiveRecord::Migration 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: 'C' t.datetime :opened_at, null: false, default: ::Time.utc(1970) t.datetime :closed_at, null: false, default: ::Time.utc(3000) 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
26 entries across 26 versions & 1 rubygems