Merge branch 'deprecated-migration-inheritance' into 'master'

Directly inheriting from ActiveRecord::Migration is deprecated

See merge request gitlab-org/gitlab-ce!25066
This commit is contained in:
Rémy Coutable 2019-02-11 11:47:34 +00:00
commit 1569389fa2
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
title: Directly inheriting from ActiveRecord::Migration is deprecated
merge_request: 25066
author: Jasper Maes
type: other

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddFirstDayOfWeekToUserPreferences < ActiveRecord::Migration
class AddFirstDayOfWeekToUserPreferences < ActiveRecord::Migration[5.0]
DOWNTIME = false
def change

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddFirstDayOfWeekToApplicationSettings < ActiveRecord::Migration
class AddFirstDayOfWeekToApplicationSettings < ActiveRecord::Migration[5.0]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!