-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