Sha256: 14e01d7bfc924e316e9f518a2e476aac4462f0cfd6971ee3119d568dd89c0eb6
Contents?: true
Size: 556 Bytes
Versions: 61
Compression:
Stored size: 556 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryBot.define do factory :withdraw do item_id{FactoryBot.create(:item).id} librarian_id{FactoryBot.create(:librarian).id} basket_id{FactoryBot.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
61 entries across 61 versions & 3 rubygems