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
Dan Barber 5b2d1d4d17
Migrate images to Active Storage
Also adds a rake task to do the migration.
2018-11-16 17:16:01 -05:00

9 lines
150 B
Ruby

class Image < ActiveRecord::Base
dragonfly_accessor :df_image
has_one_attached :image
validates :image, presence: true
belongs_to :user
end