def ignore_generated_fixtures
      ignore_file = File.join(Rails.root, FIXTURE_DIRECTORY, '../.gitignore')
      return if File.exists?(ignore_file)
      File.open(ignore_file, 'w') do |file|
        file.puts('generated')
      end
    end
def ignore_generated_fixtures
      ignore_file = File.join(Rails.root, FIXTURE_DIRECTORY, '../.gitignore')
      return if File.exists?(ignore_file)
      File.open(ignore_file, 'w') do |file|
        file.puts('generated')
      end
    end
create .gitignore to exclude generated fixtures from repository