gitlab-org--gitlab-foss/db/migrate/20170206115204_add_column_ghost_to_users.rb
Timothy Andrew 3bd2a98f64
Remove the default value for the users.ghost database column.
The default (false) is not strictly required, and this lets us avoid a
potentially expensive migration
2017-02-24 16:50:20 +05:30

11 lines
184 B
Ruby

class AddColumnGhostToUsers < ActiveRecord::Migration
DOWNTIME = false
def up
add_column :users, :ghost, :boolean
end
def down
remove_column :users, :ghost
end
end