Skip to content

Commit 5eff0c2

Browse files
committed
Fix default value not working for text field in Mysql
1 parent 133a0bb commit 5eff0c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

db/migrations/20241105000000_add_options_to_route.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
Sequel.migration do
22
up do
33
alter_table(:routes) do
4-
# rubocop:disable Migration/IncludeStringSize
5-
add_column :options, String, text: true, default: '{}'
6-
# rubocop:enable Migration/IncludeStringSize
4+
add_column :options, String, size: 4096, default: '{}'
75
end
86
end
97
down do

0 commit comments

Comments
 (0)