Sha256: c2702282b51d09011d826beb8b574ba07c5a79530c86f4b674dde868eb3a6d68
Contents?: true
Size: 695 Bytes
Versions: 35
Compression:
Stored size: 695 Bytes
Contents
class CreateComeeCoreProductLookups < ActiveRecord::Migration[7.0] def change create_table :comee_core_product_lookups do |t| t.string :code, null: false t.references :itemable, polymorphic: true, null: false t.string :item_description, null: false t.references :product, null: false, index: {name: "product_on_ccep_indx"}, foreign_key: {to_table: :comee_core_products} t.string :aliases t.timestamps end add_index :comee_core_product_lookups, %i[itemable_id itemable_type product_id], name: "itemable_product_indx_uniq", unique: true end end
Version data entries
35 entries across 35 versions & 1 rubygems