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 20171218042335_add_nodes_table.exs
Raw

priv/repo/migrations/20171218042335_add_nodes_table.exs

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