This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/priv/repo/migrations/20230813173233_create_posts.exs

15 lines
375 B
Elixir

defmodule BdfrBrowser.Repo.Migrations.CreatePosts do
use Ecto.Migration
def change do
create table(:posts) do
add :title, :string, size: 1024
add :selftext, :text
add :url, :string, size: 2048
add :permalink, :string, size: 2048
add :author, :string
add :upvote_ratio, :float
add :posted_at, :utc_datetime
end
end
end