Merge 20191117042320_add_cost_field_to_charges.exs (Charge Cost field) (#258)

* Create 20191117042320_add_cost_field_to_charges.exs

* Update 20191117042320_add_cost_field_to_charges.exs

Add end block

* Update 20191117042320_add_cost_field_to_charges.exs

Fix type definition and correct table (thanks @adriankumpf!)

* Update 20191117042320_add_cost_field_to_charges.exs

Resolve required mix formatting
This commit is contained in:
Nathan Gardiner
2019-11-24 13:55:47 +01:00
committed by Adrian Kumpf
parent 0f077e1608
commit a0618d314d
@@ -0,0 +1,9 @@
defmodule TeslaMate.Repo.Migrations.AddCostFieldToCharges do
use Ecto.Migration
def change do
alter table(:charging_processes) do
add(:cost, :decimal, precision: 6, scale: 2)
end
end
end