Correções para funcionamento do login adm
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class CreateConsolidacaoMotoristas < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :consolidacao_motoristas do |t|
|
||||
t.references :consolidacao, null: false, foreign_key: true
|
||||
t.references :consolidacao, null: false, foreign_key: { to_table: :consolidacoes }
|
||||
t.string :motorista_nome, null: false # driver da tabela existente
|
||||
t.decimal :valor_total, precision: 10, scale: 2, default: 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user