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
Jérome Perrin
gitlab-ce
Commits
585a53c4
Commit
585a53c4
authored
Jan 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can_create_group, can_create_team boolean fields for user
parent
aa1f1eb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
db/migrate/20130125090214_add_user_permissions.rb
db/migrate/20130125090214_add_user_permissions.rb
+11
-0
db/schema.rb
db/schema.rb
+3
-1
No files found.
db/migrate/20130125090214_add_user_permissions.rb
0 → 100644
View file @
585a53c4
class
AddUserPermissions
<
ActiveRecord
::
Migration
def
up
add_column
:users
,
:can_create_group
,
:boolean
,
default:
true
,
null:
false
add_column
:users
,
:can_create_team
,
:boolean
,
default:
true
,
null:
false
end
def
down
remove_column
:users
,
:can_create_group
remove_column
:users
,
:can_create_team
end
end
db/schema.rb
View file @
585a53c4
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
201301
10172407
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
201301
25090214
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"target_type"
...
...
@@ -267,6 +267,8 @@ ActiveRecord::Schema.define(:version => 20130110172407) do
t
.
string
"extern_uid"
t
.
string
"provider"
t
.
string
"username"
t
.
boolean
"can_create_group"
,
:default
=>
true
,
:null
=>
false
t
.
boolean
"can_create_team"
,
:default
=>
true
,
:null
=>
false
end
add_index
"users"
,
[
"admin"
],
:name
=>
"index_users_on_admin"
...
...
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