rosa-build/db/migrate/20120303171802_add_avatar_t...

12 lines
207 B
Ruby

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