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.3.14 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.13 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.12 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.11 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.10 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.9 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.8 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.7 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.6 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.5 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.4 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.3 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.2 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.1 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.3.0 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.2.36 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.2.35 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.2.34 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.2.33 db/migrate/20200602830603_create_ecom_core_bookings.rb
ecom_core-1.2.32 db/migrate/20200602830603_create_ecom_core_bookings.rb