Sha256: c5f71ed9c1b9f21bf5b3356454e4a7a901b525369c93018f17c67318410c7dce
Contents?: true
Size: 532 Bytes
Versions: 61
Compression:
Stored size: 532 Bytes
Contents
class CreateEcomCoreProductTypes < ActiveRecord::Migration[6.0] def change create_table :ecom_core_product_types do |t| t.string :name, null: false t.references :work_product_template, index: { name: 'pt_on_wpt_indx' } t.json :dimension t.timestamps end add_index :ecom_core_product_types, %i[name work_product_template_id], unique: true, name: 'wpt_on_pt_name_indx' add_foreign_key :ecom_core_product_types, :ecom_core_work_product_templates, column: :work_product_template_id end end
Version data entries
61 entries across 61 versions & 1 rubygems