Sha256: 6008ad45e98f9321d006e311708be9e5d523d6e344d0db2f01369bdc4f4f522e

Contents?: true

Size: 345 Bytes

Versions: 62

Compression:

Stored size: 345 Bytes

Contents

module Workarea
  class InquiriesSeeds
    def perform
      puts 'Adding inquiries...'

      Inquiry.create!(
        name: Faker::Name.name,
        email: Faker::Internet.email,
        order_id: Order.first.id,
        subject: Workarea.config.inquiry_subjects.first.first,
        message: Faker::Lorem.paragraph
      )
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.26 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.45 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.25 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.23 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.44 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.22 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.43 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.21 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.42 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.20 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.41 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.19 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.40 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.18 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.39 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.17 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.38 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.5.16 app/seeds/workarea/inquiries_seeds.rb
workarea-core-3.4.37 app/seeds/workarea/inquiries_seeds.rb