Add: image database table, image test site, image upload support

This commit is contained in:
hannah.dagemark 2025-05-07 10:59:10 +02:00 committed by Hannah Dagemark
commit 982b72494c
13 changed files with 207 additions and 1 deletions

5
app/models/image.rb Normal file
View file

@ -0,0 +1,5 @@
class Image < ApplicationRecord
has_one_attached :file
validates :title, :file, presence: true
end