summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-02-11 11:47:34 +0000
committerRémy Coutable <remy@rymai.me>2019-02-11 11:47:34 +0000
commit1569389fa2906ffc611c9af955495c794429d45a (patch)
treef810cd5211512f0c2b49ca5f8db3f4c2b609ff59
parente927833b941122f25252712bc68b37041b38ba2c (diff)
parent3820eca5c47574378b3ddee219287dcb318e2f55 (diff)
downloadgitlab-ce-1569389fa2906ffc611c9af955495c794429d45a.tar.gz
Merge branch 'deprecated-migration-inheritance' into 'master'
Directly inheriting from ActiveRecord::Migration is deprecated See merge request gitlab-org/gitlab-ce!25066
-rw-r--r--changelogs/unreleased/deprecated-migration-inheritance.yml5
-rw-r--r--db/migrate/20181027114222_add_first_day_of_week_to_user_preferences.rb2
-rw-r--r--db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb2
3 files changed, 7 insertions, 2 deletions
diff --git a/changelogs/unreleased/deprecated-migration-inheritance.yml b/changelogs/unreleased/deprecated-migration-inheritance.yml
new file mode 100644
index 00000000000..814c511195b
--- /dev/null
+++ b/changelogs/unreleased/deprecated-migration-inheritance.yml
@@ -0,0 +1,5 @@
+---
+title: Directly inheriting from ActiveRecord::Migration is deprecated
+merge_request: 25066
+author: Jasper Maes
+type: other
diff --git a/db/migrate/20181027114222_add_first_day_of_week_to_user_preferences.rb b/db/migrate/20181027114222_add_first_day_of_week_to_user_preferences.rb
index a0e76c2186e..96ba5fbd816 100644
--- a/db/migrate/20181027114222_add_first_day_of_week_to_user_preferences.rb
+++ b/db/migrate/20181027114222_add_first_day_of_week_to_user_preferences.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddFirstDayOfWeekToUserPreferences < ActiveRecord::Migration
+class AddFirstDayOfWeekToUserPreferences < ActiveRecord::Migration[5.0]
DOWNTIME = false
def change
diff --git a/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb b/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb
index 53cfaa289f6..e9a8c1011ad 100644
--- a/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb
+++ b/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb
@@ -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!