1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-09 16:42:49 +00:00
Files
classic-wow-forums/priv/repo/migrations/20180102015706_create_thread.exs

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