1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 01:22:49 +00:00

create thread migration

This commit is contained in:
2018-01-01 20:50:50 -06:00
parent e77288d40e
commit 3a61151191
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
defmodule MyApp.Repo.Migrations.CreateThread do
use Ecto.Migration
def change do
create table(:thread) do
add :title, :string
add :content, :string
add :view_count, :integer
add :user_id, references(:user)
add :last_reply_id, :integer
add :sticky, :boolean
add :locked, :boolean
timestamps()
end
end
end