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

Version Path
ecom_core-1.3.14 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.13 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.12 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.11 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.10 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.9 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.8 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.7 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.6 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.5 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.4 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.3 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.2 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.1 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.3.0 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb
ecom_core-1.2.36 db/migrate/20201122123227_create_ecom_core_lookahead_plan_backlogs.rb