Sha256: 3577f5ea65b5f0acdcafad20752a500cbe8cfd71bb731aa633b085b68b93e289

Contents?: true

Size: 589 Bytes

Versions: 16

Compression:

Stored size: 589 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 :fields

      t.timestamps
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ecom_core-1.2.31 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.30 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.29 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.28 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.27 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.26 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.25 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.24 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.23 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.22 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.21 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.20 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.19 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.18 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.17 db/migrate/20191119012030_create_ecom_core_task_templates.rb
ecom_core-1.2.16 db/migrate/20191119012030_create_ecom_core_task_templates.rb