summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Macklin <richard.github@nrm.com>2017-01-27 01:31:49 -0800
committerRichard Macklin <richard.github@nrm.com>2017-02-01 11:31:20 -0800
commitbd03ca4a8e5b041f84db85f9043aaefd669afb82 (patch)
tree37cc7c04122c9700a0b7511d0aecf70f34476ee3
parent67cec150cc5a991846a45dffdd699efbb1b65187 (diff)
downloadgitlab-ce-bd03ca4a8e5b041f84db85f9043aaefd669afb82.tar.gz
Add notified_of_own_activity column to users table
-rw-r--r--db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb14
-rw-r--r--db/schema.rb1
2 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb b/db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb
new file mode 100644
index 00000000000..f90637e1e35
--- /dev/null
+++ b/db/migrate/20170123061730_add_notified_of_own_activity_to_users.rb
@@ -0,0 +1,14 @@
+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
diff --git a/db/schema.rb b/db/schema.rb
index 5efb4f6595c..4ef8d4bbe10 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -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