User avatar upload at sign up

This commit is contained in:
Ilya Konanykhin
2017-01-18 17:18:32 +06:00
parent 8a8c82f5b7
commit a68e7eca56
6 changed files with 44 additions and 2 deletions
@@ -0,0 +1,11 @@
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