2014-12-04 19:50:02 +01:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: users
|
|
|
|
#
|
2014-12-09 18:56:56 +01:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
|
|
|
# remember_created_at :datetime
|
2016-03-08 15:53:50 +01:00
|
|
|
# admin :boolean default(FALSE)
|
2015-03-19 16:22:55 +01:00
|
|
|
# dagschotel_id :integer
|
|
|
|
# avatar_file_name :string
|
|
|
|
# avatar_content_type :string
|
|
|
|
# avatar_file_size :integer
|
|
|
|
# avatar_updated_at :datetime
|
2016-03-08 15:53:50 +01:00
|
|
|
# orders_count :integer default(0)
|
|
|
|
# koelkast :boolean default(FALSE)
|
2015-09-14 17:52:25 +02:00
|
|
|
# name :string
|
2016-03-08 15:53:50 +01:00
|
|
|
# private :boolean default(FALSE)
|
|
|
|
# frecency :integer default(0), not null
|
|
|
|
# quickpay_hidden :boolean
|
2014-12-04 19:50:02 +01:00
|
|
|
#
|
|
|
|
|
2015-09-02 20:33:35 +02:00
|
|
|
require 'faker'
|
|
|
|
require 'identicon'
|
2014-11-06 14:46:59 +01:00
|
|
|
|
2015-09-02 20:33:35 +02:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :user do
|
2016-02-05 22:47:51 +01:00
|
|
|
name { Faker::Internet.user_name }
|
2015-10-28 23:34:03 +01:00
|
|
|
avatar { Identicon.data_url_for name }
|
|
|
|
private { false }
|
2015-09-04 18:13:58 +02:00
|
|
|
|
|
|
|
factory :admin do
|
|
|
|
admin true
|
|
|
|
end
|
|
|
|
|
|
|
|
factory :koelkast do
|
|
|
|
koelkast true
|
2015-09-17 14:05:33 +02:00
|
|
|
name "koelkast"
|
2015-09-04 18:13:58 +02:00
|
|
|
end
|
2015-03-03 18:16:05 +01:00
|
|
|
end
|
2014-11-06 14:46:59 +01:00
|
|
|
end
|