From 0fc9f9d3e741629987afd2370069485bca640396 Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Tue, 13 Nov 2018 08:27:31 +0100 Subject: Add version 4.2 to all existing migrations DB schema generated by a migration may look different in rails 4 and 5 (because rails 5 may use different default values). For this reason it's important to explicitly set for which rails version a migration was written for. See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912 --- db/migrate/20160212123307_create_tasks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/migrate/20160212123307_create_tasks.rb') diff --git a/db/migrate/20160212123307_create_tasks.rb b/db/migrate/20160212123307_create_tasks.rb index cd3ad0e4cd8..33acc8af91f 100644 --- a/db/migrate/20160212123307_create_tasks.rb +++ b/db/migrate/20160212123307_create_tasks.rb @@ -1,5 +1,5 @@ # rubocop:disable all -class CreateTasks < ActiveRecord::Migration +class CreateTasks < ActiveRecord::Migration[4.2] DOWNTIME = false def change -- cgit v1.2.1