Sha256: 22997f63b75d924aed9e55243cee85d4481d94f9b88437168de4a654d44e30ed

Contents?: true

Size: 671 Bytes

Versions: 45

Compression:

Stored size: 671 Bytes

Contents

class CreateTaskTemplatesResourceTypes < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_task_templates_resource_types, id: false do |t|
      t.references :task_template,
                   null: false,
                   index: false,
                   foreign_key: { to_table: :ecom_core_task_templates }
      t.references :resource_type,
                   null: false,
                   index: false,
                   foreign_key: { to_table: :ecom_core_resource_types }
    end

    add_index :ecom_core_task_templates_resource_types, %i[task_template_id resource_type_id],
              unique: true, name: 'ttr_on_tt_rt_indx'
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ecom_core-1.2.11 db/migrate/20191202105355_create_task_templates_resource_types.rb
ecom_core-1.2.10 db/migrate/20191202105355_create_task_templates_resource_types.rb
ecom_core-1.2.9 db/migrate/20191202105355_create_task_templates_resource_types.rb
ecom_core-1.2.7 db/migrate/20191202105355_create_task_templates_resource_types.rb
ecom_core-1.2.6 db/migrate/20191202105355_create_task_templates_resource_types.rb