Sha256: 92b44ef6a117ea66b90cd27d9ac881e9a7abbdcf3a35ce147243fd6c0984da1d
Contents?: true
Size: 671 Bytes
Versions: 156
Compression:
Stored size: 671 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.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
156 entries across 156 versions & 1 rubygems