Sha256: 6264b59147d5f8ef1880a27e4356a9ee2d68baa4c34075bc6cbe49ce405df599
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 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.references :booked_for, null: false, index: { name: 'booking_on_bf_indx' }, foreign_key: { to_table: :ecom_core_users } t.string :remark t.string :status, null: false t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.13 | db/migrate/20200602830603_create_ecom_core_bookings.rb |