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
542763ff
Commit
542763ff
authored
Sep 20, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename FF schema to use `Operations::`
parent
685b68a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
app/models/operations/feature_flag.rb
app/models/operations/feature_flag.rb
+0
-0
app/models/operations/feature_flag_access_token.rb
app/models/operations/feature_flag_access_token.rb
+0
-0
db/migrate/20180626171125_add_feature_flags_to_projects.rb
db/migrate/20180626171125_add_feature_flags_to_projects.rb
+2
-2
db/schema.rb
db/schema.rb
+20
-20
No files found.
app/models/
project_
feature_flag.rb
→
app/models/
operations/
feature_flag.rb
View file @
542763ff
File moved
app/models/
project_feature_flags
_access_token.rb
→
app/models/
operations/feature_flag
_access_token.rb
View file @
542763ff
File moved
db/migrate/20180626171125_add_feature_flags_to_projects.rb
View file @
542763ff
...
...
@@ -5,7 +5,7 @@ class AddFeatureFlagsToProjects < ActiveRecord::Migration
DOWNTIME
=
false
def
change
create_table
:
project
_feature_flags
do
|
t
|
create_table
:
operations
_feature_flags
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
datetime_with_timezone
:created_at
,
null:
false
t
.
datetime_with_timezone
:updated_at
,
null:
false
...
...
@@ -19,7 +19,7 @@ class AddFeatureFlagsToProjects < ActiveRecord::Migration
t
.
index
[
:project_id
,
:name
],
unique:
true
end
create_table
:
project
_feature_flags_access_tokens
do
|
t
|
create_table
:
operations
_feature_flags_access_tokens
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
string
:token
,
null:
false
...
...
db/schema.rb
View file @
542763ff
...
...
@@ -1943,6 +1943,24 @@ ActiveRecord::Schema.define(version: 20180926140319) do
t
.
string
"nonce"
,
null:
false
end
create_table
"operations_feature_flags"
,
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
.
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_access_tokens"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"token"
,
null:
false
end
add_index
"operations_feature_flags_access_tokens"
,
[
"project_id"
,
"token"
],
name:
"project_feature_flag_access_token"
,
unique:
true
,
using: :btree
create_table
"packages_maven_metadata"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"package_id"
,
limit:
8
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
...
...
@@ -2090,24 +2108,6 @@ ActiveRecord::Schema.define(version: 20180926140319) do
add_index
"project_deploy_tokens"
,
[
"project_id"
,
"deploy_token_id"
],
name:
"index_project_deploy_tokens_on_project_id_and_deploy_token_id"
,
unique:
true
,
using: :btree
create_table
"project_feature_flags"
,
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
.
string
"name"
,
null:
false
t
.
text
"description"
t
.
boolean
"active"
,
null:
false
end
add_index
"project_feature_flags"
,
[
"project_id"
,
"name"
],
name:
"index_project_feature_flags_on_project_id_and_name"
,
unique:
true
,
using: :btree
create_table
"project_feature_flags_access_tokens"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"token"
,
null:
false
end
add_index
"project_feature_flags_access_tokens"
,
[
"project_id"
,
"token"
],
name:
"project_feature_flag_access_token"
,
unique:
true
,
using: :btree
create_table
"project_features"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
integer
"merge_requests_access_level"
...
...
@@ -3251,6 +3251,8 @@ ActiveRecord::Schema.define(version: 20180926140319) do
add_foreign_key
"notes"
,
"projects"
,
name:
"fk_99e097b079"
,
on_delete: :cascade
add_foreign_key
"notification_settings"
,
"users"
,
name:
"fk_0c95e91db7"
,
on_delete: :cascade
add_foreign_key
"oauth_openid_requests"
,
"oauth_access_grants"
,
column:
"access_grant_id"
,
name:
"fk_oauth_openid_requests_oauth_access_grants_access_grant_id"
add_foreign_key
"operations_feature_flags"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"operations_feature_flags_access_tokens"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"packages_maven_metadata"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_be88aed360"
,
on_delete: :cascade
add_foreign_key
"packages_package_files"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_86f0f182f8"
,
on_delete: :cascade
add_foreign_key
"packages_packages"
,
"projects"
,
on_delete: :cascade
...
...
@@ -3265,8 +3267,6 @@ ActiveRecord::Schema.define(version: 20180926140319) do
add_foreign_key
"project_custom_attributes"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_deploy_tokens"
,
"deploy_tokens"
,
on_delete: :cascade
add_foreign_key
"project_deploy_tokens"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_feature_flags"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_feature_flags_access_tokens"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_features"
,
"projects"
,
name:
"fk_18513d9b92"
,
on_delete: :cascade
add_foreign_key
"project_group_links"
,
"projects"
,
name:
"fk_daa8cee94c"
,
on_delete: :cascade
add_foreign_key
"project_import_data"
,
"projects"
,
name:
"fk_ffb9ee3a10"
,
on_delete: :cascade
...
...
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