Sha256: 7f832ac339b388d929db4dd55e2c25433f93e0449ce91022dcc3ed76dbbddc93

Contents?: true

Size: 831 Bytes

Versions: 38

Compression:

Stored size: 831 Bytes

Contents

class CreateEcomCoreBookedItems < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_booked_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_requested_items }
      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

38 entries across 38 versions & 1 rubygems

Version Path
ecom_core-1.2.31 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.30 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.29 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.28 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.27 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.26 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.25 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.24 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.23 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.22 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.21 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.20 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.19 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.18 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.17 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.16 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.15 db/migrate/20200603115317_create_ecom_core_booked_items.rb
ecom_core-1.2.14 db/migrate/20200603115317_create_ecom_core_booked_items.rb