diff options
Diffstat (limited to 'lib/gitlab/database/migration_helpers.rb')
-rw-r--r-- | lib/gitlab/database/migration_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/migration_helpers.rb b/lib/gitlab/database/migration_helpers.rb index 6ebe5594101..e2cbf91f281 100644 --- a/lib/gitlab/database/migration_helpers.rb +++ b/lib/gitlab/database/migration_helpers.rb @@ -434,7 +434,7 @@ module Gitlab end begin - default_after_type_cast = connection.type_cast_from_column(column_for(table, column), default) + default_after_type_cast = connection.type_cast(default, column_for(table, column)) update_column_in_batches(table, column, default_after_type_cast, &block) change_column_null(table, column, false) unless allow_null |