Sha256: 0c39474133297f0ff35f2355f581d78f41fa55f38be1fffa0464233c53a86d38

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 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,
                   null: false,
                   index: { name: 'tt_on_wpt_indx' },
                   foreign_key: { to_table: :ecom_core_task_templates }

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecom_core-1.2.14 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.13 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.12 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.11 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.10 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.9 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.7 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb
ecom_core-1.2.6 db/migrate/20191119013236_create_ecom_core_work_product_templates.rb