debian-mirror-gitlab/debian/patches/0680-rails-5-migrations.patch

21 lines
816 B
Diff
Raw Normal View History

2019-03-17 18:06:09 +05:30
--- 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[4.2]
DOWNTIME = false
def change
--- 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[4.2]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!