Sha256: 6053fcc992acbc93bd3360345fadddec9f78322f4ddfd8defa1a7924f1e674dd
Contents?: true
Size: 689 Bytes
Versions: 16
Compression:
Stored size: 689 Bytes
Contents
class CreateEcomCoreLookaheadPlanBacklogs < ActiveRecord::Migration[6.0] def change create_table :ecom_core_lookahead_plan_backlogs, id: false do |t| t.references :lookahead_plan, null: false, index: { name: 'lpb_on_lp_indx' }, foreign_key: { to_table: :ecom_core_lookahead_plans } t.references :task, null: false, index: { name: 'lpb_on_tas_indx' }, foreign_key: { to_table: :ecom_core_tasks } t.timestamps end add_index :ecom_core_lookahead_plan_backlogs, [:lookahead_plan_id, :task_id], unique: true, name: 'lpb_on_lp_and_task' end end
Version data entries
16 entries across 16 versions & 1 rubygems