Sha256: c7869d1258c1eea1cf49af9061bc03f60dcc6ffd36d53a857f4c638492f8f726
Contents?: true
Size: 694 Bytes
Versions: 61
Compression:
Stored size: 694 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, index: false t.references :resource_type, index: false end add_index :ecom_core_task_templates_resource_types, %i[task_template_id resource_type_id], unique: true, name: 'ttr_on_tt_rt_indx' add_foreign_key :ecom_core_task_templates_resource_types, :ecom_core_task_templates, column: :task_template_id add_foreign_key :ecom_core_task_templates_resource_types, :ecom_core_resource_types, column: :resource_type_id end end
Version data entries
61 entries across 61 versions & 1 rubygems