farmbot_os/farmbot_core/priv/asset/migrations/20181019180925_create_farmw...

15 lines
420 B
Elixir

defmodule Elixir.Farmbot.Asset.Repo.Migrations.CreateFarmwareEnvsTable do
use Ecto.Migration
def change do
create table("farmware_envs", primary_key: false) do
add(:local_id, :binary_id, primary_key: true)
add(:id, :id)
add(:key, :string)
add(:value, :string)
add(:monitor, :boolean, default: true)
timestamps(inserted_at: :created_at, type: :utc_datetime)
end
end
end