Rails5.2がRC2になっていたのでActiveStorageの挙動を少し調べてみました。 準備 まずActiveStorageを使うためにmigrationファイルを作成します。 bin/rails active_storage:install bin/rails db:migrate ActiveStorageではCarrierwaveなどと違いファイルの情報を別テーブルに保存するため、これを実行してActiveStorage用のテーブルを作成します。 テーブルがないと↓のように怒られます。 ActiveRecord::StatementInvalid: Could not find table 'active_storage_attachments' migrateを実行するとactive_storage_blobs と active_storage_attachments とい
![ActiveStorageの挙動を調べる | Simple is Beautiful.](https://cdn-ak-scissors.b.st-hatena.com/image/square/7e1dbaa95894fbadb5f0a94e83c9162f468e6937/height=288;version=1;width=512/https%3A%2F%2Fblog.kozakana.net%2Fimg%2Fogp.png)