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
ec383872
Commit
ec383872
authored
Oct 02, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimise Feature Flags DB schema
parent
25907d0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
db/schema.rb
db/schema.rb
+3
-3
ee/db/migrate/20180626171125_add_feature_flags_to_projects.rb
...b/migrate/20180626171125_add_feature_flags_to_projects.rb
+3
-3
No files found.
db/schema.rb
View file @
ec383872
...
...
@@ -1943,18 +1943,18 @@ ActiveRecord::Schema.define(version: 20180926140319) do
t
.
string
"nonce"
,
null:
false
end
create_table
"operations_feature_flags"
,
force: :cascade
do
|
t
|
create_table
"operations_feature_flags"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
boolean
"active"
,
null:
false
t
.
string
"name"
,
null:
false
t
.
text
"description"
t
.
boolean
"active"
,
null:
false
end
add_index
"operations_feature_flags"
,
[
"project_id"
,
"name"
],
name:
"index_operations_feature_flags_on_project_id_and_name"
,
unique:
true
,
using: :btree
create_table
"operations_feature_flags_clients"
,
force: :cascade
do
|
t
|
create_table
"operations_feature_flags_clients"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"token"
,
null:
false
end
...
...
ee/db/migrate/20180626171125_add_feature_flags_to_projects.rb
View file @
ec383872
...
...
@@ -5,21 +5,21 @@ class AddFeatureFlagsToProjects < ActiveRecord::Migration
DOWNTIME
=
false
def
change
create_table
:operations_feature_flags
do
|
t
|
create_table
:operations_feature_flags
,
id: :bigserial
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
datetime_with_timezone
:created_at
,
null:
false
t
.
datetime_with_timezone
:updated_at
,
null:
false
t
.
boolean
:active
,
null:
false
t
.
string
:name
,
null:
false
t
.
text
:description
t
.
boolean
:active
,
null:
false
t
.
foreign_key
:projects
,
column: :project_id
,
on_delete: :cascade
t
.
index
[
:project_id
,
:name
],
unique:
true
end
create_table
:operations_feature_flags_clients
do
|
t
|
create_table
:operations_feature_flags_clients
,
id: :bigserial
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
string
:token
,
null:
false
...
...
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