Sha256: 895f411786e8e79ffbe991e3b61fb5dd678589848304455f6d0073482e31e049

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

class CreateComeeCoreInventories < ActiveRecord::Migration[7.0]
  def change
    create_table :comee_core_inventories do |t|
      t.bigint :hash_code, null: false
      t.references :product,
                   null: false,
                   index: {name: "product_on_cci_indx"},
                   foreign_key: {to_table: :comee_core_products}
      t.integer :quantity, null: false

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comee_core-0.1.50 db/migrate/20231003073316_create_comee_core_inventories.rb