```ruby
if Rails.env.test?
  storage :file
else
  storage :fog
end
```