Sha256: d1e83871ebb5ac93ed8a073f66e709ee7581c0fb38178d8f1ac2961f157adf85
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
class CreateUnidomEan8Barcodes < ActiveRecord::Migration[6.0] def change create_table :unidom_ean_8_barcodes, id: :uuid do |t| t.column :code, 'char(8)', null: false, default: '0'*8 t.column :gs1_prefix, 'char(3)', null: false, default: '0'*3 t.column :item_reference, 'char(4)', null: false, default: '0'*4 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_8_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/20020103000000_create_unidom_ean_8_barcodes.rb |