Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-11-13 10:27:31 +0300
committerJan Provaznik <jprovaznik@gitlab.com>2018-11-22 15:18:28 +0300
commit0fc9f9d3e741629987afd2370069485bca640396 (patch)
treedfa0f6609bd5cb66dd83789c671919f80c2bc8a1 /db/migrate/20180426102016_add_accepted_term_to_users.rb
parentfcec474ceb7d4f7d715ef39cbfee6936b52254f7 (diff)
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
Diffstat (limited to 'db/migrate/20180426102016_add_accepted_term_to_users.rb')
-rw-r--r--db/migrate/20180426102016_add_accepted_term_to_users.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180426102016_add_accepted_term_to_users.rb b/db/migrate/20180426102016_add_accepted_term_to_users.rb
index 3d446f66214..3c6665b4264 100644
--- a/db/migrate/20180426102016_add_accepted_term_to_users.rb
+++ b/db/migrate/20180426102016_add_accepted_term_to_users.rb
@@ -1,7 +1,7 @@
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
-class AddAcceptedTermToUsers < ActiveRecord::Migration
+class AddAcceptedTermToUsers < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false