Sha256: 13ec5e54a7a49d76e2bfca5a0251e44dab80f2b2c1b480a5cc767ea26f8c2eea
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
class CreateEcomCoreBookedEquipments < ActiveRecord::Migration[6.0] def change create_table :ecom_core_booked_equipments do |t| t.references :booking_request, null: false, index: { name: 'be_on_br_indx' }, foreign_key: { to_table: :ecom_core_booking_requests } 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 :status, null: false, default: 'Booked' t.references :booked_to, null: false, index: { name: 'be_on_bt_indx' }, foreign_key: { to_table: :ecom_core_users } t.string :remark t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.12 | db/migrate/20200603115317_create_ecom_core_booked_equipments.rb |