-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14958 from opf/feature/40749--make_done_ratio_nil…
…_by_default Make done_ratio nil by default
- Loading branch information
Showing
9 changed files
with
360 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -257,8 +257,10 @@ RSpec/ContextWording: | |
- as | ||
- even | ||
- for | ||
- given | ||
- having | ||
- if | ||
- in | ||
- 'on' | ||
- to | ||
- unless | ||
|
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
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
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
8 changes: 8 additions & 0 deletions
8
db/migrate/20240307094432_change_done_ratio_default_value_to_null.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,8 @@ | ||
class ChangeDoneRatioDefaultValueToNull < ActiveRecord::Migration[7.1] | ||
def change | ||
change_column_null :work_packages, :done_ratio, true | ||
change_column_default :work_packages, :done_ratio, from: 0, to: nil | ||
change_column_null :work_package_journals, :done_ratio, true | ||
change_column_default :work_package_journals, :done_ratio, from: 0, to: nil | ||
end | ||
end |
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
Oops, something went wrong.