Skip to content

Commit

Permalink
fix: migration hash
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Oct 11, 2023
1 parent f082882 commit 65a2c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/qbot/db/migrate/20230410_rename_server_config_contents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/qbot/db/migrate/20230414_schema_reworks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 65a2c2d

Please sign in to comment.