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
bd03ca4a
Commit
bd03ca4a
authored
Jan 27, 2017
by
Richard Macklin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notified_of_own_activity column to users table
parent
67cec150
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb
...e/20170123061730_add_notified_of_own_activity_to_users.rb
+14
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb
0 → 100644
View file @
bd03ca4a
class
AddNotifiedOfOwnActivityToUsers
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
disable_ddl_transaction!
DOWNTIME
=
false
def
up
add_column_with_default
:users
,
:notified_of_own_activity
,
:boolean
,
default:
false
end
def
down
remove_column
:users
,
:notified_of_own_activity
end
end
db/schema.rb
View file @
bd03ca4a
...
...
@@ -1257,6 +1257,7 @@ ActiveRecord::Schema.define(version: 20170130204620) do
t
.
string
"organization"
t
.
string
"incoming_email_token"
t
.
boolean
"authorized_projects_populated"
t
.
boolean
"notified_of_own_activity"
,
default:
false
,
null:
false
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