Sha256: 4a25372eca2cbfc4cee75d14a23fab33f0584f7ee4385ff7c5735187b2c48a28
Contents?: true
Size: 1.5 KB
Versions: 10
Compression:
Stored size: 1.5 KB
Contents
class CreateEcomCoreWorkComponents < ActiveRecord::Migration[6.0] def change create_table :ecom_core_work_components do |t| t.string :name, null: false t.json :dimension t.string :assignment_status, null: false, default: :unassigned t.string :task_status, null: false, default: :new t.integer :percent_completed, null: false, default: 0 t.string :remark t.references :performer, null: true, index: false, foreign_key: { to_table: :ecom_core_users } t.references :approver, null: true, index: false, foreign_key: { to_table: :ecom_core_users } t.references :supervisor, null: true, index: false, foreign_key: { to_table: :ecom_core_users } t.references :quality_controller, null: true, index: false, foreign_key: { to_table: :ecom_core_users } t.date :start_date t.date :completion_date t.references :work_component_template, null: false, index: { name: 'wct_on_wc_indx' }, foreign_key: { to_table: :ecom_core_work_component_templates } t.references :work_product, null: false, index: { name: 'wp_on_wc_indx' }, foreign_key: { to_table: :ecom_core_work_products } t.timestamps end end end
Version data entries
10 entries across 10 versions & 1 rubygems