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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
6ce3b1a3
Commit
6ce3b1a3
authored
Dec 26, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add migration for developers can push to protected branches flag.
parent
e46f546b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb
...26080412_add_developers_can_push_to_protected_branches.rb
+5
-0
db/schema.rb
db/schema.rb
+5
-4
No files found.
db/migrate/20141226080412_add_developers_can_push_to_protected_branches.rb
0 → 100644
View file @
6ce3b1a3
class
AddDevelopersCanPushToProtectedBranches
<
ActiveRecord
::
Migration
def
change
add_column
:protected_branches
,
:developers_can_push
,
:boolean
,
default:
false
,
null:
false
end
end
db/schema.rb
View file @
6ce3b1a3
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201412
05134006
)
do
ActiveRecord
::
Schema
.
define
(
version:
201412
26080412
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -283,6 +283,7 @@ ActiveRecord::Schema.define(version: 20141205134006) do
t
.
string
"name"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
boolean
"developers_can_push"
,
default:
false
,
null:
false
end
add_index
"protected_branches"
,
[
"project_id"
],
name:
"index_protected_branches_on_project_id"
,
using: :btree
...
...
@@ -367,7 +368,6 @@ ActiveRecord::Schema.define(version: 20141205134006) do
t
.
integer
"notification_level"
,
default:
1
,
null:
false
t
.
datetime
"password_expires_at"
t
.
integer
"created_by_id"
t
.
datetime
"last_credential_check_at"
t
.
string
"avatar"
t
.
string
"confirmation_token"
t
.
datetime
"confirmed_at"
...
...
@@ -375,6 +375,7 @@ ActiveRecord::Schema.define(version: 20141205134006) do
t
.
string
"unconfirmed_email"
t
.
boolean
"hide_no_ssh_key"
,
default:
false
t
.
string
"website_url"
,
default:
""
,
null:
false
t
.
datetime
"last_credential_check_at"
end
add_index
"users"
,
[
"admin"
],
name:
"index_users_on_admin"
,
using: :btree
...
...
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