diff --git a/lib/qbot/db/migrate/20230410_rename_server_config_contents.rb b/lib/qbot/db/migrate/20230410_rename_server_config_contents.rb index 546805d..eb78700 100644 --- a/lib/qbot/db/migrate/20230410_rename_server_config_contents.rb +++ b/lib/qbot/db/migrate/20230410_rename_server_config_contents.rb @@ -5,8 +5,8 @@ def change change_table :server_configs do |t| t.rename :options, :contents - t.change_null :contents, false, {} # default - t.change_default :contents, from: nil, to: {} + t.change_null :contents, false, '{}' # default + t.change_default :contents, from: nil, to: '{}' end end end diff --git a/lib/qbot/db/migrate/20230414_schema_reworks.rb b/lib/qbot/db/migrate/20230414_schema_reworks.rb index 4474b8d..365cb70 100644 --- a/lib/qbot/db/migrate/20230414_schema_reworks.rb +++ b/lib/qbot/db/migrate/20230414_schema_reworks.rb @@ -3,7 +3,7 @@ class SchemaReworks < ActiveRecord::Migration[7.0] def change change_table :server_configs do |t| - t.remove :modules_json + t.remove :modules_json, :text end change_table :user_configs do |t|