feat: Add ability to enable and disable data collection for cars (#3993)

* Add ability to enable and disable cars

* Add default value for enabled in car_settings.

* Fix unit tests.

* Fix formatting.

* Update text to be more descriptive

* Update lables.
This commit is contained in:
mark3-dev
2024-07-05 09:01:16 +02:00
committed by GitHub
parent 9ba6fc8f0d
commit c90cde871d
25 changed files with 737 additions and 582 deletions
@@ -0,0 +1,9 @@
defmodule TeslaMate.Repo.Migrations.AddEnabledToCarSettings do
use Ecto.Migration
def change do
alter table(:car_settings) do
add :enabled, :boolean, null: false, default: true
end
end
end