mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 01:22:49 +00:00
lots of things done: thread - reply - category - seeds
This commit is contained in:
14
priv/repo/migrations/20180103040352_create_reply.exs
Normal file
14
priv/repo/migrations/20180103040352_create_reply.exs
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule MyApp.Repo.Migrations.CreateReply do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:reply) do
|
||||
add :user_id, references(:user)
|
||||
add :thread_id, references(:thread)
|
||||
add :content, :string
|
||||
add :edited, :boolean
|
||||
add :quote, :boolean
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user