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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
ac816d90
Commit
ac816d90
authored
Sep 05, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration
parent
a3f76b76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
db/migrate/20170825154015_resolve_outdated_diff_discussions.rb
...grate/20170825154015_resolve_outdated_diff_discussions.rb
+3
-11
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20170825154015_resolve_outdated_diff_discussions.rb
View file @
ac816d90
class
CollapseOutdatedDiffComment
s
<
ActiveRecord
::
Migration
class
ResolveOutdatedDiffDiscussion
s
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:projects
,
:resolve_outdated_diff_discussions
,
:boolean
,
default:
false
)
end
def
down
remove_column
(
:projects
,
:resolve_outdated_diff_discussions
)
def
change
add_column
(
:projects
,
:resolve_outdated_diff_discussions
,
:boolean
)
end
end
db/schema.rb
View file @
ac816d90
...
...
@@ -1202,7 +1202,6 @@ ActiveRecord::Schema.define(version: 20170901071411) do
t
.
boolean
"public_builds"
,
default:
true
,
null:
false
t
.
boolean
"last_repository_check_failed"
t
.
datetime
"last_repository_check_at"
t
.
boolean
"resolve_outdated_diff_discussions"
,
default:
false
,
null:
false
t
.
boolean
"container_registry_enabled"
t
.
boolean
"only_allow_merge_if_pipeline_succeeds"
,
default:
false
,
null:
false
t
.
boolean
"has_external_issue_tracker"
...
...
@@ -1220,6 +1219,7 @@ ActiveRecord::Schema.define(version: 20170901071411) do
t
.
string
"ci_config_path"
t
.
text
"delete_error"
t
.
integer
"storage_version"
,
limit:
2
t
.
boolean
"resolve_outdated_diff_discussions"
end
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
...
...
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