Sha256: 5fbc91138d443410fe42ac5f4d14a8c5b6773fae59717c720243cee69bda6411
Contents?: true
Size: 560 Bytes
Versions: 22
Compression:
Stored size: 560 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :withdraw do item_id{FactoryGirl.create(:item).id} librarian_id{FactoryGirl.create(:librarian).id} basket_id{FactoryGirl.create(:basket, user_id: librarian_id).id} end end # == Schema Information # # Table name: withdraws # # id :integer not null, primary key # basket_id :integer # item_id :integer # librarian_id :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
22 entries across 20 versions & 2 rubygems