-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathusers.rb
44 lines (41 loc) · 1.3 KB
/
users.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# name :string
# city :string
# picture_url :string
# professional :boolean
# newsletter :boolean
# created_at :datetime not null
# updated_at :datetime not null
# email :string default(""), not null
# encrypted_password :string default(""), not null
# reset_password_token :string
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0), not null
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :inet
# last_sign_in_ip :inet
# avatar :string
# provider :string
# uid :string
# slug :string
# forum_admin :boolean default(FALSE)
# phone :string
#
FactoryBot.define do
factory :user do
name { Faker::Name.name }
email { Faker::Internet.safe_email }
password 'password'
password_confirmation 'password'
newsletter false
factory :forum_admin do
forum_admin true
end
end
end