Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
64e91d30
Commit
64e91d30
authored
Dec 06, 2019
by
Andreas Brandl
Committed by
Tiger
Dec 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cop ignores for AddColumnWithDefault
parent
242cb46a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ee/db/geo/migrate/20171009162208_add_file_registry_success.rb
...b/geo/migrate/20171009162208_add_file_registry_success.rb
+1
-1
ee/db/geo/migrate/20180323182105_add_missing_on_primary_to_file_registry.rb
...20180323182105_add_missing_on_primary_to_file_registry.rb
+1
-1
ee/db/geo/migrate/20180402170913_add_missing_on_primary_to_job_artifact_registry..rb
...70913_add_missing_on_primary_to_job_artifact_registry..rb
+1
-1
No files found.
ee/db/geo/migrate/20171009162208_add_file_registry_success.rb
View file @
64e91d30
...
...
@@ -7,7 +7,7 @@ class AddFileRegistrySuccess < ActiveRecord::Migration[4.2]
def
up
# Ensure existing rows are recorded as successes
add_column_with_default
:file_registry
,
:success
,
:boolean
,
default:
true
,
allow_null:
false
add_column_with_default
:file_registry
,
:success
,
:boolean
,
default:
true
,
allow_null:
false
# rubocop:disable Migration/AddColumnWithDefault
change_column
:file_registry
,
:success
,
:boolean
,
default:
false
end
...
...
ee/db/geo/migrate/20180323182105_add_missing_on_primary_to_file_registry.rb
View file @
64e91d30
...
...
@@ -6,7 +6,7 @@ class AddMissingOnPrimaryToFileRegistry < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def
up
add_column_with_default
:file_registry
,
:missing_on_primary
,
:boolean
,
default:
false
,
allow_null:
false
add_column_with_default
:file_registry
,
:missing_on_primary
,
:boolean
,
default:
false
,
allow_null:
false
# rubocop:disable Migration/AddColumnWithDefault
end
def
down
...
...
ee/db/geo/migrate/20180402170913_add_missing_on_primary_to_job_artifact_registry..rb
View file @
64e91d30
...
...
@@ -6,7 +6,7 @@ class AddMissingOnPrimaryToJobArtifactRegistry < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def
up
add_column_with_default
:job_artifact_registry
,
:missing_on_primary
,
:boolean
,
default:
false
,
allow_null:
false
add_column_with_default
:job_artifact_registry
,
:missing_on_primary
,
:boolean
,
default:
false
,
allow_null:
false
# rubocop:disable Migration/AddColumnWithDefault
end
def
down
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment