Sha256: 6349eccd132d992e7a69777e127d9c80f15b461ee0dc864570ab34c075812c47

Contents?: true

Size: 844 Bytes

Versions: 1

Compression:

Stored size: 844 Bytes

Contents

class CreateEcomCoreBookedEquipmentItems < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_booked_equipment_items do |t|
      t.references :booking,
                   null: false,
                   index: { name: 'bei_on_booking_indx' },
                   foreign_key: { to_table: :ecom_core_bookings }
      t.references :requested_item,
                  null: false,
                  index: { name: 'bei_on_ri_indx' },
                   foreign_key: { to_table: :ecom_core_bookings }
      t.references :equipment_item,
                   null: false,
                   index: { name: 'be_on_ei_indx' },
                   foreign_key: { to_table: :ecom_core_equipment_items }
      t.date :start_date, null: false
      t.date :end_date, null: false
      t.string :remark

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom_core-1.2.13 db/migrate/20200603115317_create_ecom_core_booked_equipment_items.rb