26 lines
675 B
Ruby
Executable File
26 lines
675 B
Ruby
Executable File
# == Schema Information
|
|
#
|
|
# Table name: teams
|
|
#
|
|
# id :bigint not null, primary key
|
|
# allow_auto_assign :boolean default(TRUE)
|
|
# description :text
|
|
# name :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# account_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_teams_on_account_id (account_id)
|
|
# index_teams_on_name_and_account_id (name,account_id) UNIQUE
|
|
#
|
|
FactoryBot.define do
|
|
factory :team do
|
|
sequence(:name) { |n| "Team #{n}" }
|
|
description { 'MyText' }
|
|
allow_auto_assign { true }
|
|
account
|
|
end
|
|
end
|