Skip to content

Commit

Permalink
Fix default value not working for text field in Mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmaen committed Dec 3, 2024
1 parent 133a0bb commit 5eff0c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db/migrations/20241105000000_add_options_to_route.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Sequel.migration do
up do
alter_table(:routes) do
# rubocop:disable Migration/IncludeStringSize
add_column :options, String, text: true, default: '{}'
# rubocop:enable Migration/IncludeStringSize
add_column :options, String, size: 4096, default: '{}'
end
end
down do
Expand Down

0 comments on commit 5eff0c2

Please sign in to comment.