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:
parent
d90d188dbf
commit
6b400b4f96
3 changed files with 11 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class IncreaseChoicesSize < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :polls, :choices, :text, limit: 65535
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue