Update
This commit is contained in:
parent
188bc08494
commit
4af88f3e1d
44 changed files with 1041 additions and 34 deletions
|
@ -9,6 +9,7 @@ defmodule Nulla.Repo.Migrations.CreateUsersAuthTables do
|
|||
add :email, :citext, null: false
|
||||
add :hashed_password, :string, null: false
|
||||
add :confirmed_at, :utc_datetime
|
||||
add :last_active_at, :utc_datetime
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
|
|
|
@ -2,7 +2,8 @@ defmodule Nulla.Repo.Migrations.CreateRelations do
|
|||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:relations) do
|
||||
create table(:relations, primary_key: false) do
|
||||
add :id, :bigint, primary_key: true
|
||||
add :following, :boolean, default: false, null: false
|
||||
add :followed_by, :boolean, default: false, null: false
|
||||
add :showing_replies, :boolean, default: false, null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue