Sha256: f27d80a570f3ed58901698f09394e0cd2c5bc0cb8258127b71266b822038c31a

Contents?: true

Size: 850 Bytes

Versions: 10

Compression:

Stored size: 850 Bytes

Contents

class CreateEcomCoreTaskTemplates < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_task_templates do |t|
      t.string :code, null: false
      t.string :name, null: false
      t.string :description
      t.references :task_template_type,
                   null: false,
                   index: { name: 'tt_on_ttt_indx' },
                   foreign_key: { to_table: :ecom_core_task_template_types }
      t.string :ancestry, index: true
      t.boolean :has_takeoff_fields, null: false, default: false
      t.jsonb :takeoff_fields, null: true
      t.integer :percentage_contribution
      t.integer :task_sequence
      t.boolean :has_inspection, null: false, default: false
      t.boolean :discipline, null: false, default: false
      t.jsonb :task_completion_detail, null: true

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ecom_core-1.3.14 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.13 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.12 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.11 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.10 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.9 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.8 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.7 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.6 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.3.5 db/migrate/20191119012030_create_ecom_core_task_templates.rb