react-code-dataset / Facebook-Clone /db /migrate /20180608020455_add_attachment_image_to_posts.rb
Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
236 Bytes
class AddAttachmentImageToPosts < ActiveRecord::Migration[5.1]
def self.up
change_table :users do |t|
t.attachment :profile_image_url
end
end
def self.down
remove_attachment :users, :profile_image_url
end
end