Newer
Older
dmpopidor / spec / factories / sections.rb
@Bodacious Bodacious on 3 Aug 2018 484 bytes Remove published column from sections table
# == Schema Information
#
# Table name: sections
#
#  id          :integer          not null, primary key
#  title       :string
#  description :text
#  number      :integer
#  created_at  :datetime
#  updated_at  :datetime
#  published   :boolean
#  phase_id    :integer
#  modifiable  :boolean
#

FactoryBot.define do
  factory :section do
    title { Faker::Lorem.sentence }
    description { Faker::Lorem.paragraph }
    sequence(:number)
    phase
    modifiable false
  end
end