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
7633945c
Commit
7633945c
authored
Jul 31, 2017
by
Robin Bobbitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to disable project export on instance - db changes
parent
e80a893f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
db/migrate/20170809161910_add_project_export_enabled_to_application_settings.rb
...910_add_project_export_enabled_to_application_settings.rb
+14
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20170809161910_add_project_export_enabled_to_application_settings.rb
0 → 100644
View file @
7633945c
class
AddProjectExportEnabledToApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
disable_ddl_transaction!
DOWNTIME
=
false
def
up
add_column_with_default
(
:application_settings
,
:project_export_enabled
,
:boolean
,
default:
true
)
end
def
down
remove_column
(
:application_settings
,
:project_export_enabled
)
end
end
db/schema.rb
View file @
7633945c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201708091
42252
)
do
ActiveRecord
::
Schema
.
define
(
version:
201708091
61910
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -127,6 +127,7 @@ ActiveRecord::Schema.define(version: 20170809142252) do
t
.
string
"help_page_support_url"
t
.
integer
"performance_bar_allowed_group_id"
t
.
boolean
"password_authentication_enabled"
t
.
boolean
"project_export_enabled"
,
default:
true
,
null:
false
end
create_table
"audit_events"
,
force: :cascade
do
|
t
|
...
...
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