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
f5159b3b
Commit
f5159b3b
authored
May 08, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MakeRemoteMirrorsDisabledByDefault DB migration
parent
0eb74426
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb
...20180508055821_make_remote_mirrors_disabled_by_default.rb
+11
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb
0 → 100644
View file @
f5159b3b
class
MakeRemoteMirrorsDisabledByDefault
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
up
change_column_default
:remote_mirrors
,
:enabled
,
false
end
def
down
change_column_default
:remote_mirrors
,
:enabled
,
true
end
end
db/schema.rb
View file @
f5159b3b
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2018050
3200320
)
do
ActiveRecord
::
Schema
.
define
(
version:
2018050
8055821
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1712,7 +1712,7 @@ ActiveRecord::Schema.define(version: 20180503200320) do
create_table
"remote_mirrors"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
t
.
string
"url"
t
.
boolean
"enabled"
,
default:
tru
e
t
.
boolean
"enabled"
,
default:
fals
e
t
.
string
"update_status"
t
.
datetime
"last_update_at"
t
.
datetime
"last_successful_update_at"
...
...
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