Sha256: 693a182a377df05bfdb39f0610ad1ec628223c3145ba414c1311684785597738

Contents?: true

Size: 506 Bytes

Versions: 61

Compression:

Stored size: 506 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.string :remark
      t.references :task_template, index: { name: 'tt_on_wpt_indx' }

      t.timestamps
    end

    add_foreign_key :ecom_core_work_product_templates, :ecom_core_task_templates, column: :task_template_id
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ecom_core-1.0.20 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.19 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.18 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.17 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.16 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.15 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.14 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.13 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.12 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.11 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.10 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.9 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.8 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.7 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.6 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.5 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.4 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.3 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.2 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.1 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb