Allow for string to be sized based on column size
jhartwell opened this issue · 3 comments
jhartwell commented
If you have a varchar column that is more than 255 characters wide you will have issues when using the :string type for a field. This can be changed by using the size option but we need to pass that in
jhartwell commented
This cannot be done with options like for the field function, like I originally thought. Will have to create an alter table migration (https://stackoverflow.com/a/42824296)
jhartwell commented
This actually does not need to be done in alter table, we just need to use :text instead of :string when a varchar is greater than 255 characters
jhartwell commented
This has been completed and will be in the next release