13 lines
274 B
Elixir
13 lines
274 B
Elixir
defmodule Postland.Repo.Migrations.AddObjects do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table("objects", primary_key: false) do
|
|
add :id, :text, primary_key: true
|
|
add :type, :text, null: false
|
|
add :data, :map
|
|
|
|
timestamps()
|
|
end
|
|
end
|
|
end
|