0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

activestorageとimage_id

Posted at

activestorage
→簡単に説明すると画像を全部しまっておく倉庫!

最初からノートにべたべた貼ると見た目がよくないしなおかつ沢山画像を貼りすぎると重くなってしまう!
画像のid(image_id)も多すぎると重くなる!

したがって、ノートには「activestorageから画像を持ってくるよ!」といった指示だけ書いてあるだけ!

なおかつ、画像にIDを振るのも、他のテーブル(表)のデータとの紐づけもすべてactivestorageで実行!

したがって、image_idはいらない!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?