BigW Consortium Gitlab

Commit 6ba69483 by Robert Speicher

Revert the AddNotifiedOfOwnActivityToUsers migration

parent 68e40bd4
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: 20170313133418) 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