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
f58cc2ee
Commit
f58cc2ee
authored
Dec 22, 2017
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove default value from cache_index migration
parent
705022d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
db/migrate/20171222183504_add_cache_index_to_project.rb
db/migrate/20171222183504_add_cache_index_to_project.rb
+2
-8
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20171222183504_add_cache_index_to_project.rb
View file @
f58cc2ee
...
@@ -7,13 +7,7 @@ class AddCacheIndexToProject < ActiveRecord::Migration
...
@@ -7,13 +7,7 @@ class AddCacheIndexToProject < ActiveRecord::Migration
# Set this constant to true if this migration requires downtime.
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_column
:projects
,
:cache_index
,
:integer
def
up
add_column_with_default
(
:projects
,
:cache_index
,
:integer
,
default:
0
)
end
def
down
remove_column
(
:projects
,
:cache_index
)
end
end
end
end
db/schema.rb
View file @
f58cc2ee
...
@@ -1447,7 +1447,7 @@ ActiveRecord::Schema.define(version: 20171222183504) do
...
@@ -1447,7 +1447,7 @@ ActiveRecord::Schema.define(version: 20171222183504) do
t
.
boolean
"repository_read_only"
t
.
boolean
"repository_read_only"
t
.
boolean
"merge_requests_ff_only_enabled"
,
default:
false
t
.
boolean
"merge_requests_ff_only_enabled"
,
default:
false
t
.
boolean
"merge_requests_rebase_enabled"
,
default:
false
,
null:
false
t
.
boolean
"merge_requests_rebase_enabled"
,
default:
false
,
null:
false
t
.
integer
"cache_index"
,
default:
0
,
null:
false
t
.
integer
"cache_index"
end
end
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
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