Initial commit - Fase 1: Setup Rails + Docker
This commit is contained in:
13
db/migrate/20260101000006_create_historico_estimados.rb
Normal file
13
db/migrate/20260101000006_create_historico_estimados.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateHistoricoEstimados < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :historico_estimados do |t|
|
||||
t.datetime :data_hora, null: false
|
||||
t.decimal :valor_total_estimado, precision: 10, scale: 2, null: false
|
||||
t.integer :entregas_contadas, null: false, default: 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :historico_estimados, :data_hora
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user