Correções para funcionamento do login adm

This commit is contained in:
2026-06-15 21:17:14 -03:00
parent b59fedec5c
commit 146aa3e762
26 changed files with 262 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
class CreateConsolidacaoEntregas < ActiveRecord::Migration[7.1]
def change
create_table :consolidacao_entregas do |t|
t.references :consolidacao, null: false, foreign_key: true
t.references :consolidacao, null: false, foreign_key: { to_table: :consolidacoes }
t.string :tracking_id, null: false # FK lógico para db_reem_simplerout_2026
t.string :motorista_nome, null: false
t.integer :tipo, null: false, default: 0