Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
66f536ec
Commit
66f536ec
authored
Mar 20, 2017
by
lain
Browse files
Add user schema.
parent
e32dbfc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
0 → 100644
View file @
66f536ec
defmodule
Pleroma
.
User
do
use
Ecto
.
Schema
schema
"users"
do
field
:bio
,
:string
field
:email
,
:string
field
:name
,
:string
field
:nickname
,
:string
field
:password_hash
,
:string
timestamps
()
end
end
priv/repo/migrations/20170320193800_create_user.exs
0 → 100644
View file @
66f536ec
defmodule
Pleroma
.
Repo
.
Migrations
.
CreatePleroma
.
User
do
use
Ecto
.
Migration
def
change
do
create
table
(
:users
)
do
add
:email
,
:string
add
:password_hash
,
:string
add
:name
,
:string
add
:nickname
,
:string
add
:bio
,
:string
timestamps
()
end
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment