frenzy/priv/repo/migrations/20190309185450_create_rules.exs

16 lines
327 B
Elixir
Raw Normal View History

2019-03-10 19:47:01 -04:00
defmodule Frenzy.Repo.Migrations.CreateRules do
use Ecto.Migration
def change do
create table(:rules) do
add :mode, :string
add :property, :string
add :param, :string
add :weight, :integer
2019-03-10 22:23:28 -04:00
add :filter_id, references(:filters, on_delete: :delete_all)
2019-03-10 19:47:01 -04:00
timestamps()
end
end
end