title: Rails : Pathname issue with WSL
body: <p>Hey we are <strong>3 students</strong>, we all use the same <strong>rails db:seed</strong>. Our project is well git pulled and coordinated, but ..</p>
  <p>One uses <strong>Linux</strong>, the <strong>rails:db:seed</strong> works for him.</p>
  <p>One uses <strong>Mac</strong>, the <strong>rails:db:seed</strong> works for him too.</p>
  <p>Me, I use <strong>WSL</strong>, and it <strong>dosnt work</strong> !
  I've tried both Windows &amp; WSL paths, as the screens bellow.</p>
  <p>Thanks if anyone can guide me !</p>
  <p><a href="https://i.stack.imgur.com/b3Ygm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b3Ygm.png" alt="Error" /></a></p>
  <p><a href="https://i.stack.imgur.com/R7nwG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R7nwG.png" alt=".env" /></a></p>
  <p><a href="https://i.stack.imgur.com/6r7Mj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6r7Mj.png" alt="path" /></a></p>
  <p><a href="https://i.stack.imgur.com/zCSCB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zCSCB.png" alt="path2" /></a></p>
  <p><strong>config/seed.rb</strong></p>
  <pre><code># This file should contain all the record creation needed to seed the database with its default values.
  # The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
  #
  # Examples:
  #
  #   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
  #   Character.create(name: 'Luke', movie: movies.first)
  
  require 'faker'
  
  RealEstate.destroy_all
  User.destroy_all
  Category.destroy_all
  
  Category.create(title:&quot;House&quot;)
  Category.create(title:&quot;Flat&quot;)
  
  10.times do
    u = User.create(email: Faker::Internet.email, password: Faker::Internet.password)
  end
  
  30.times do
    re = RealEstate.create(
      title: Faker::Space.galaxy, 
      description: Faker::Lorem.paragraph_by_chars(number: 256), 
      address: Faker::Address.full_address, 
      location: Faker::Address.city, 
      price: Faker::Number.number(digits: 8), 
      user: User.all.sample(), 
      category: Category.all.sample()
      )
    re.images.attach(io: File.open(ENV['SAMPLE_IMAGES']), filename: 'sample_image')
  end
  
  puts &quot;%&quot; * 50
  puts &quot;       Base de données remplie !&quot;
  puts &quot;%&quot; * 50
  </code></pre>