Sha256: a309a63105703a34361ea1c079d82a4e0c64832056b590b1bd5a70e2f1173a93
Contents?: true
Size: 998 Bytes
Versions: 18
Compression:
Stored size: 998 Bytes
Contents
class CreateEcomCoreWorkProductTemplates < ActiveRecord::Migration[6.0] def change create_table :ecom_core_work_product_templates do |t| t.string :code, null: false, unique: true t.string :name, null: false, unique: true t.string :description t.references :task_template_type, null: false, index: { name: 'wpt_on_ttt_indx' }, foreign_key: { to_table: :ecom_core_task_template_types } t.timestamps end create_table :ecom_core_task_templates_work_product_templates do |t| t.references :task_template, null: false, index: { name: 'ttwpt_on_tt_indx' }, foreign_key: { to_table: :ecom_core_task_templates } t.references :work_product_template, null: false, index: { name: 'ttwpt_on_wpt_indx' }, foreign_key: { to_table: :ecom_core_work_product_templates } end end end
Version data entries
18 entries across 18 versions & 1 rubygems