Skip to content

Commit

Permalink
Merge 20191117042320_add_cost_field_to_charges.exs (Charge Cost field) (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
ngardiner authored and adriankumpf committed Nov 24, 2019
1 parent 0f077e1 commit a0618d3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a0618d3

Please sign in to comment.