Sha256: 18aeb838b7dfecd521ebc5f7eb239c8b796ebd5e86d53170842be74109b4a67c

Contents?: true

Size: 837 Bytes

Versions: 35

Compression:

Stored size: 837 Bytes

Contents

class CreateComeeCorePickupSchedules < ActiveRecord::Migration[7.1]
  def change
    create_table :comee_core_pickup_schedules do |t|
      t.references :pod,
                   null: false,
                   index: {name: "pod_on_ccps_indx"},
                   foreign_key: {to_table: :comee_core_pods}
      t.references :time_slot,
                   null: false,
                   index: {name: "ts_on_ccps_indx"},
                   foreign_key: {to_table: :comee_core_time_slots}
      t.references :agent,
                   null: true,
                   index: {name: "agent_on_ccps_indx"},
                   foreign_key: {to_table: :comee_core_agents}
      t.integer :status, null: false, default: 0
      t.string :truck_no
      t.string :driver_license_no
      t.string :plate_no

      t.timestamps
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
comee_core-0.3.62 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.61 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.60 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.59 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.58 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.57 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.56 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.55 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.54 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.53 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.51 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.50 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.49 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.48 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.47 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.46 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.45 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.44 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.43 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb
comee_core-0.3.42 db/migrate/20240111112140_create_comee_core_pickup_schedules.rb