tap/db/migrate/20141209204351_add_attachment_avatar_to_users.rb

12 lines
210 B
Ruby
Raw Normal View History

2014-12-09 22:32:54 +01:00
class AddAttachmentAvatarToUsers < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.attachment :avatar
end
end
def self.down
remove_attachment :users, :avatar
end
end