Add notified_of_own_activity column to users table

This commit is contained in:
Richard Macklin 2017-01-27 01:31:49 -08:00
parent 67cec150cc
commit bd03ca4a8e
2 changed files with 15 additions and 0 deletions

View file

@ -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

View file

@ -1257,6 +1257,7 @@ ActiveRecord::Schema.define(version: 20170130204620) do
t.string "organization" t.string "organization"
t.string "incoming_email_token" t.string "incoming_email_token"
t.boolean "authorized_projects_populated" t.boolean "authorized_projects_populated"
t.boolean "notified_of_own_activity", default: false, null: false
end end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree add_index "users", ["admin"], name: "index_users_on_admin", using: :btree