object_lookup.rb 150 B

12345
  1. FactoryBot.define do
  2. factory :object_lookup do
  3. name { (ApplicationModel.descendants.map(&:name) - ObjectLookup.pluck(:name)).sample }
  4. end
  5. end