1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00
my-images/app/models/image.rb

8 lines
119 B
Ruby

class Image < ActiveRecord::Base
has_one_attached :image
validates :image, attached: true
belongs_to :user
end