-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/add missing settings migration (#112)
* fix(migration): add missing settings category migration * fix(bundler): pin version to support used ruby version * fix(tests): Update dependent plugins and add fix for failing minitest * feat(tests): Add foreman >= 3.5 versions to test matrix
- Loading branch information
1 parent
1274da3
commit d1e1ca7
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
db/migrate/20240201094513_fix_wreckingball_settings_category_to_dsl.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class FixWreckingballSettingsCategoryToDsl < ActiveRecord::Migration[6.0] | ||
class MigrationSettings < ActiveRecord::Base | ||
self.table_name = :settings | ||
end | ||
|
||
def up | ||
MigrationSettings.where(category: 'Setting::Wreckingball').update_all(category: 'Setting') if column_exists?(:settings, :category) | ||
end | ||
end |