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]

Check warning on line 3 in lib/qbot/db/migrate/20230414_schema_reworks.rb

View check run for this annotation

Check Run Reporter / Lint / lint

com.puppycrawl.tools.checkstyle.Style/Documentation

com.puppycrawl.tools.checkstyle.Style/Documentation: Style/Documentation: Missing top-level documentation comment for `class SchemaReworks`.
def change

Check warning on line 4 in lib/qbot/db/migrate/20230414_schema_reworks.rb

View check run for this annotation

Check Run Reporter / Lint / lint

com.puppycrawl.tools.checkstyle.Metrics/AbcSize

com.puppycrawl.tools.checkstyle.Metrics/AbcSize: Metrics/AbcSize: Assignment Branch Condition size for change is too high. [<7, 33, 0> 33.73/17]

Check warning on line 4 in lib/qbot/db/migrate/20230414_schema_reworks.rb

View check run for this annotation

Check Run Reporter / Lint / lint

com.puppycrawl.tools.checkstyle.Metrics/MethodLength

com.puppycrawl.tools.checkstyle.Metrics/MethodLength: Metrics/MethodLength: Method has too many lines. [40/10]
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.