Retrospring/db/migrate/20141229085904_add_attachme...

12 lines
241 B
Ruby

class AddAttachmentProfilePictureToUsers < ActiveRecord::Migration[4.2]
def self.up
change_table :users do |t|
t.attachment :profile_picture
end
end
def self.down
remove_attachment :users, :profile_picture
end
end