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
58467b35
Commit
58467b35
authored
Jun 01, 2016
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remote Mirrors should be disabled by default
parent
72137999
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
db/migrate/20160530214349_make_remote_mirrors_disabled_by_default.rb
...20160530214349_make_remote_mirrors_disabled_by_default.rb
+25
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20160530214349_make_remote_mirrors_disabled_by_default.rb
0 → 100644
View file @
58467b35
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
MakeRemoteMirrorsDisabledByDefault
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this
# method is the _only_ method called in the migration, any other changes
# should go in a separate migration. This ensures that upon failure _only_ the
# index creation fails and can be retried or reverted easily.
#
# To disable transactions uncomment the following line and remove these
# comments:
# disable_ddl_transaction!
def
up
change_column
:remote_mirrors
,
:enabled
,
:boolean
,
default:
false
end
def
down
change_column
:remote_mirrors
,
:enabled
,
:boolean
,
default:
true
end
end
db/schema.rb
View file @
58467b35
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201605
09201028
)
do
ActiveRecord
::
Schema
.
define
(
version:
201605
30214349
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
@@ -922,7 +922,7 @@ ActiveRecord::Schema.define(version: 20160509201028) do
...
@@ -922,7 +922,7 @@ ActiveRecord::Schema.define(version: 20160509201028) do
create_table
"remote_mirrors"
,
force: :cascade
do
|
t
|
create_table
"remote_mirrors"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
t
.
integer
"project_id"
t
.
string
"url"
t
.
string
"url"
t
.
boolean
"enabled"
,
default:
tru
e
t
.
boolean
"enabled"
,
default:
fals
e
t
.
string
"update_status"
t
.
string
"update_status"
t
.
datetime
"last_update_at"
t
.
datetime
"last_update_at"
t
.
datetime
"last_successful_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