2012-03-22 17:11:12 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-03-03 18:05:02 +00:00
|
|
|
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
|