2013-01-31 08:11:35 +01:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: user_teams
|
|
|
|
#
|
2013-03-15 14:16:02 +01:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# name :string(255)
|
|
|
|
# path :string(255)
|
|
|
|
# owner_id :integer
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
# description :string(255) default(""), not null
|
2013-01-31 08:11:35 +01:00
|
|
|
#
|
|
|
|
|
2013-01-19 18:53:03 +01:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :user_team do
|
|
|
|
sequence(:name) { |n| "team#{n}" }
|
2013-02-08 09:16:08 +01:00
|
|
|
sequence(:description) { |n| "team_description#{n}" }
|
2013-01-19 18:53:03 +01:00
|
|
|
path { name.downcase.gsub(/\s/, '_') }
|
|
|
|
owner
|
|
|
|
end
|
|
|
|
end
|