2015-09-08 11:44:40 +02:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: users
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# name :string
|
|
|
|
# balance :integer default(0), not null
|
|
|
|
# penning :boolean default(FALSE), not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
|
2019-05-30 11:08:46 +02:00
|
|
|
FactoryBot.define do
|
2015-09-08 11:30:11 +02:00
|
|
|
factory :user do
|
2015-09-08 13:37:30 +02:00
|
|
|
name { Faker::Internet.user_name }
|
|
|
|
|
|
|
|
factory :penning do
|
2019-05-30 11:08:46 +02:00
|
|
|
penning { true }
|
2015-09-08 13:37:30 +02:00
|
|
|
end
|
2015-09-08 11:30:11 +02:00
|
|
|
end
|
|
|
|
end
|