Adopt Rails 5 belongs_to_required_by_default
This commit is contained in:
parent
2557645f4f
commit
44a198c7bc
23 changed files with 53 additions and 38 deletions
|
|
@ -6,6 +6,7 @@ FactoryBot.define do
|
|||
supplier
|
||||
number { rand(1..99999) }
|
||||
amount { rand(0.1..26.0).round(2) }
|
||||
created_by { create :user }
|
||||
|
||||
after :create do |invoice|
|
||||
invoice.supplier.reload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue