Update to paperclip 4.x and add content type validation
This commit is contained in:
parent
6d8fb474af
commit
e36aa53f49
5 changed files with 20 additions and 11 deletions
5
db/migrate/20140210003018_add_user_image_content_type.rb
Normal file
5
db/migrate/20140210003018_add_user_image_content_type.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddUserImageContentType < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :image_content_type, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue