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
iv
gitlab-ce
Commits
4b395045
Commit
4b395045
authored
Mar 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notification level for user
parent
cf6d4dc1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
app/models/user.rb
app/models/user.rb
+7
-0
db/migrate/20130325173941_add_notification_level_to_user.rb
db/migrate/20130325173941_add_notification_level_to_user.rb
+5
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
app/models/user.rb
View file @
4b395045
...
@@ -53,6 +53,13 @@ class User < ActiveRecord::Base
...
@@ -53,6 +53,13 @@ class User < ActiveRecord::Base
attr_accessible
:login
attr_accessible
:login
#
# Notification levels
#
N_DISABLED
=
0
N_PARTICIPATING
=
1
N_WATCH
=
2
#
#
# Relations
# Relations
#
#
...
...
db/migrate/20130325173941_add_notification_level_to_user.rb
0 → 100644
View file @
4b395045
class
AddNotificationLevelToUser
<
ActiveRecord
::
Migration
def
change
add_column
:users
,
:notification_level
,
:integer
,
null:
false
,
default:
1
end
end
db/schema.rb
View file @
4b395045
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended to check this file into your version control system.
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
201303
18212250
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
201303
25173941
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"target_type"
t
.
string
"target_type"
...
@@ -270,6 +270,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do
...
@@ -270,6 +270,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do
t
.
boolean
"can_create_team"
,
:default
=>
true
,
:null
=>
false
t
.
boolean
"can_create_team"
,
:default
=>
true
,
:null
=>
false
t
.
string
"state"
t
.
string
"state"
t
.
integer
"color_scheme_id"
,
:default
=>
1
,
:null
=>
false
t
.
integer
"color_scheme_id"
,
:default
=>
1
,
:null
=>
false
t
.
integer
"notification_level"
,
:default
=>
1
,
:null
=>
false
end
end
add_index
"users"
,
[
"admin"
],
:name
=>
"index_users_on_admin"
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