Merge pull request #118 from ilya-konanykhin/issue-105-106

Issue #105, #106: photo upload for User & Bike
This commit is contained in:
Jason Denney
2017-01-26 08:22:19 -08:00
committed by GitHub
18 changed files with 1538 additions and 153 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
@@ -0,0 +1,11 @@
class AddAttachmentPhotoToBikes < ActiveRecord::Migration
def self.up
change_table :bikes do |t|
t.attachment :photo
end
end
def self.down
remove_attachment :bikes, :photo
end
end