Sha256: 732f35c5d0a9ddfc42bacad6f8eb0fc8528e0bde594aa5dfd5856fe5678bf64f
Contents?: true
Size: 489 Bytes
Versions: 206
Compression:
Stored size: 489 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 add_index :comee_core_inventories, :product_id, unique: true end end
Version data entries
206 entries across 206 versions & 1 rubygems