FactoryBot.define do factory :application_module, class: Ecom::Core::ApplicationModule do sequence :code do |n| "AMCode#{n}" end name { FFaker::Name.name } end end