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.1.14 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.13 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.12 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.11 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.10 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.9 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.8 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.7 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.6 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.5 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.4 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.3 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.2 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.1 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.1.0 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.25 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.24 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.23 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.22 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.0.21 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb