flag.rb 190 B

12345678
  1. FactoryBot.define do
  2. factory :'ticket/flag', aliases: %i[ticket_flag] do
  3. ticket
  4. key { "key_#{rand(100)}" }
  5. value { "value_#{rand(100)}" }
  6. created_by_id { 1 }
  7. end
  8. end