Packages

MySensors is an open source hardware and software community focusing on do-it-yourself home automation and Internet of Things.

Current section

Files

Jump to
my_sensors priv repo migrations 20180923170221_create_nodes_table.exs
Raw

priv/repo/migrations/20180923170221_create_nodes_table.exs

defmodule MySensors.Repo.Migrations.CreateNodesTable do
use Ecto.Migration
def change do
create table("nodes") do
add :name, :string
add :battery_level, :float
add :protocol, :string
add :sketch_name, :string
add :sketch_version, :string
add :config, :string
timestamps()
end
end
end