X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cacf1879c3bbae1fac645b53be6abf9ee139d686..a7ba87340d91a6eeef096783b04a9b0a963bfa99:/db/migrate/011_add_user_image.rb?ds=sidebyside diff --git a/db/migrate/011_add_user_image.rb b/db/migrate/011_add_user_image.rb index 3d97e1582..2f53c65fc 100644 --- a/db/migrate/011_add_user_image.rb +++ b/db/migrate/011_add_user_image.rb @@ -1,9 +1,9 @@ -class AddUserImage < ActiveRecord::Migration +class AddUserImage < ActiveRecord::Migration[4.2] def self.up - add_column 'users', 'image', 'mediumblob' + add_column "users", "image", :text end def self.down - remove_column 'users', 'image' + remove_column "users", "image" end end