tap/spec/factories/barcodes.rb
2015-09-26 16:26:58 +02:00

18 lines
318 B
Ruby

# == Schema Information
#
# Table name: barcodes
#
# id :integer not null, primary key
# product_id :integer
# code :string default(""), not null
# created_at :datetime
# updated_at :datetime
#
FactoryGirl.define do
factory :barcode do
product
sequence :code
end
end