tab/spec/factories/users.rb

21 lines
464 B
Ruby

# == 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
#
FactoryBot.define do
factory :user do
name { Faker::Internet.user_name }
factory :penning do
penning { true }
end
end
end