class AddAvatarToUsers < ActiveRecord::Migration def change change_table :users do |t| t.has_attached_file :avatar end end def self.down drop_attached_file :users, :avatar end end