BigW Consortium Gitlab

Commit e2a0ea3d by Robert Speicher Committed by DJ Mountney

Merge branch 'rs-revert-notified-of-own-activity-migration' into 'master'

Revert the AddNotifiedOfOwnActivityToUsers migration See merge request !9973
parent 16bcc550
class RevertAddNotifiedOfOwnActivityToUsers < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
DOWNTIME = false
def up
if our_column_exists?
remove_column :users, :notified_of_own_activity
end
end
def down
unless our_column_exists?
add_column_with_default :users, :notified_of_own_activity, :boolean, default: false
end
end
private
def our_column_exists?
column_exists?(:users, :notified_of_own_activity)
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170306170512) do
ActiveRecord::Schema.define(version: 20170315174634) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment