mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-09 16:42:49 +00:00
18 lines
400 B
Elixir
18 lines
400 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 :view_count, :integer
|
|
add :user_id, references(:user)
|
|
add :last_reply_id, :integer
|
|
add :sticky, :boolean
|
|
add :locked, :boolean
|
|
add :edited, :boolean
|
|
timestamps()
|
|
end
|
|
end
|
|
end
|