mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
19 lines
464 B
Elixir
19 lines
464 B
Elixir
defmodule MyApp.Repo.Migrations.CreateThread do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:thread) do
|
|
add :title, :string
|
|
add :category_id, :integer
|
|
add :content, :string, size: 2000
|
|
add :view_count, :integer
|
|
add :user_id, references(:user)
|
|
add :last_reply_id, :integer # TODO: figure this out
|
|
add :sticky, :boolean
|
|
add :locked, :boolean
|
|
add :edited, :boolean
|
|
timestamps()
|
|
end
|
|
end
|
|
end
|