summaryrefslogtreecommitdiff
path: root/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-11-13 08:27:31 +0100
committerJan Provaznik <jprovaznik@gitlab.com>2018-11-22 13:18:28 +0100
commit0fc9f9d3e741629987afd2370069485bca640396 (patch)
treedfa0f6609bd5cb66dd83789c671919f80c2bc8a1 /db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
parentfcec474ceb7d4f7d715ef39cbfee6936b52254f7 (diff)
downloadgitlab-ce-0fc9f9d3e741629987afd2370069485bca640396.tar.gz
Add version 4.2 to all existing migrationsjprovazn-versioned-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
Diffstat (limited to 'db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb')
-rw-r--r--db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb b/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
index 95105118764..8a319554c28 100644
--- a/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
+++ b/db/migrate/20160302152808_remove_wrong_import_url_from_projects.rb
@@ -2,7 +2,7 @@
# Loops through old importer projects that kept a token/password in the import URL
# and encrypts the credentials into a separate field in project#import_data
# #down method not supported
-class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration
+class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration[4.2]
class ProjectImportDataFake
extend AttrEncrypted