Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
foreman_notification_send
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
foreman_notification_send
Commits
045f722a
Verified
Commit
045f722a
authored
2 years ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Fix settings DSL migration
parent
a8275c22
No related branches found
Branches containing commit
Tags
v0.2.0
Tags containing commit
No related merge requests found
Pipeline
#91408
passed
2 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/migrate/20230313105520_convert_settings_to_dsl.rb
+2
-1
2 additions, 1 deletion
db/migrate/20230313105520_convert_settings_to_dsl.rb
lib/foreman_notification_send/version.rb
+1
-1
1 addition, 1 deletion
lib/foreman_notification_send/version.rb
with
3 additions
and
2 deletions
db/migrate/20230313105520_convert_settings_to_dsl.rb
+
2
−
1
View file @
045f722a
...
...
@@ -2,6 +2,7 @@
class
ConvertSettingsToDsl
<
ActiveRecord
::
Migration
[
6.0
]
def
up
Settings
.
where
(
category:
'Setting::NotificationSend'
).
update_all
(
category:
'Setting'
)
Setting
.
where
(
category:
'Setting::NotificationSend'
).
update_all
(
category:
'Setting'
)
\
if
column_exists?
(
:settings
,
:category
)
end
end
This diff is collapsed.
Click to expand it.
lib/foreman_notification_send/version.rb
+
1
−
1
View file @
045f722a
# frozen_string_literal: true
module
ForemanNotificationSend
VERSION
=
'0.4.
0
'
VERSION
=
'0.4.
1
'
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment