react-code-dataset / Facebook-Clone /db /migrate /20180613072514_add_attachment_photo_to_posts.rb
Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
212 Bytes
class AddAttachmentPhotoToPosts < ActiveRecord::Migration[5.2]
def self.up
change_table :posts do |t|
t.attachment :photo
end
end
def self.down
remove_attachment :posts, :photo
end
end