Bike photo upload

This commit is contained in:
Ilya Konanykhin
2017-01-18 18:38:29 +06:00
parent a68e7eca56
commit 5f7eb43f63
10 changed files with 1406 additions and 105 deletions
@@ -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