LoginSignup
7
9

More than 5 years have passed since last update.

CarrierWaveで画像更新時に以前のバージョンを削除しない

Posted at

自前で画像の再アップロード時にfilenameを更新するようにしていたので、以前のバージョンも保持しておきたかった

config/initializers/carrierwave.rb
CarrierWave.configure do |config|
  ...
  # 画像更新時に以前のバージョンを削除しない
  config.remove_previously_stored_files_after_update = false 
end
7
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
9