diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2017-02-07 09:43:24 +0300 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2017-02-24 14:20:20 +0300 |
commit | 3bd2a98f64a12a2e23a6b9ce77427a9c2033a6bf (patch) | |
tree | 2c80880b9d024bbcdaa4402a7a74f8d62207434d /db/migrate | |
parent | 8f01644ff4d25285475cbf053b140292ac50f225 (diff) |
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
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170206115204_add_column_ghost_to_users.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/db/migrate/20170206115204_add_column_ghost_to_users.rb b/db/migrate/20170206115204_add_column_ghost_to_users.rb index 57b66ca91a8..cc1eeda1160 100644 --- a/db/migrate/20170206115204_add_column_ghost_to_users.rb +++ b/db/migrate/20170206115204_add_column_ghost_to_users.rb @@ -1,12 +1,8 @@ class AddColumnGhostToUsers < ActiveRecord::Migration - include Gitlab::Database::MigrationHelpers - DOWNTIME = false - disable_ddl_transaction! - def up - add_column_with_default :users, :ghost, :boolean, default: false, allow_null: false + add_column :users, :ghost, :boolean end def down |