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
94f56232
Commit
94f56232
authored
Nov 05, 2021
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Insert dotenv application limits
parent
86c84fc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
db/migrate/20211105161404_insert_dotenv_application_limits.rb
...igrate/20211105161404_insert_dotenv_application_limits.rb
+27
-0
db/schema_migrations/20211105161404
db/schema_migrations/20211105161404
+1
-0
No files found.
db/migrate/20211105161404_insert_dotenv_application_limits.rb
0 → 100644
View file @
94f56232
# frozen_string_literal: true
class
InsertDotenvApplicationLimits
<
Gitlab
::
Database
::
Migration
[
1.0
]
def
up
create_or_update_plan_limit
(
'dotenv_variables'
,
'default'
,
150
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'free'
,
50
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'opensource'
,
150
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'premium'
,
100
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'premium_trial'
,
100
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'ultimate'
,
150
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'ultimate_trial'
,
150
)
create_or_update_plan_limit
(
'dotenv_size'
,
'default'
,
5
.
kilobytes
)
end
def
down
create_or_update_plan_limit
(
'dotenv_variables'
,
'default'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'free'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'opensource'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'premium'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'premium_trial'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'ultimate'
,
20
)
create_or_update_plan_limit
(
'dotenv_variables'
,
'ultimate_trial'
,
20
)
create_or_update_plan_limit
(
'dotenv_size'
,
'default'
,
5
.
kilobytes
)
end
end
db/schema_migrations/20211105161404
0 → 100644
View file @
94f56232
911cc21de320d0d5716ce80ebca56433b793c2072cb62da783605c99bb9aada9
\ No newline at end of file
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