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
|
|
|
|
#
|
|
|
|
|
2015-09-08 11:30:11 +02:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :user do
|
2015-09-08 13:37:30 +02:00
|
|
|
name { Faker::Internet.user_name }
|
|
|
|
|
|
|
|
factory :penning do
|
|
|
|
penning true
|
|
|
|
end
|
2015-09-08 11:30:11 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|