Sha256: a26aa7edefe58d45531731682413c129bbf602fdfcd4c98e2209041d8e513555

Contents?: true

Size: 598 Bytes

Versions: 38

Compression:

Stored size: 598 Bytes

Contents

class CreateEcomCoreBookings < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_bookings do |t|
      t.references :equipment_request,
                   null: false,
                   index: { name: 'booking_on_er_indx' },
                   foreign_key: { to_table: :ecom_core_equipment_requests }
      t.references :booked_by,
                   null: false,
                   index: { name: 'er_on_bb_indx' },
                   foreign_key: { to_table: :ecom_core_users }
      t.string :remark
      t.string :status, null: false

      t.timestamps
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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