Increase choices size for polls

MariaDB/MySQL stores the array as serialized string, so the current
limit of 255 is too small to store all choices.
This commit is contained in:
Patrick Gansterer 2020-07-30 22:22:57 +02:00
parent d90d188dbf
commit 6b400b4f96
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class IncreaseChoicesSize < ActiveRecord::Migration
def up
change_column :polls, :choices, :text, limit: 65535
end
end