From 0a32949115d22c8284bf77cbc2c68057d63e227f Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Thu, 23 Nov 2017 14:08:26 +0100 Subject: [PATCH] Update migrations to include their versions --- db/migrate/20141130153941_create_problems.rb | 2 +- .../20141213151812_rename_problems_table_to_translations.rb | 2 +- db/migrate/20141214214958_create_problems_again.rb | 2 +- db/migrate/20141214220056_add_translation_to_problem.rb | 2 +- db/migrate/20141214221259_add_problem_to_translation.rb | 2 +- db/migrate/20150131103802_devise_create_admins.rb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/db/migrate/20141130153941_create_problems.rb b/db/migrate/20141130153941_create_problems.rb index ea807b0..eea8096 100644 --- a/db/migrate/20141130153941_create_problems.rb +++ b/db/migrate/20141130153941_create_problems.rb @@ -1,4 +1,4 @@ -class CreateProblems < ActiveRecord::Migration +class CreateProblems < ActiveRecord::Migration[4.2] def change create_table :problems do |t| t.string :title diff --git a/db/migrate/20141213151812_rename_problems_table_to_translations.rb b/db/migrate/20141213151812_rename_problems_table_to_translations.rb index 801a1cc..8b89add 100644 --- a/db/migrate/20141213151812_rename_problems_table_to_translations.rb +++ b/db/migrate/20141213151812_rename_problems_table_to_translations.rb @@ -1,4 +1,4 @@ -class RenameProblemsTableToTranslations < ActiveRecord::Migration +class RenameProblemsTableToTranslations < ActiveRecord::Migration[4.2] def change rename_table :problems, :translations end diff --git a/db/migrate/20141214214958_create_problems_again.rb b/db/migrate/20141214214958_create_problems_again.rb index 1a137b5..45e203e 100644 --- a/db/migrate/20141214214958_create_problems_again.rb +++ b/db/migrate/20141214214958_create_problems_again.rb @@ -1,4 +1,4 @@ -class CreateProblemsAgain < ActiveRecord::Migration +class CreateProblemsAgain < ActiveRecord::Migration[4.2] def change create_table :problems do |t| t.timestamps null: true diff --git a/db/migrate/20141214220056_add_translation_to_problem.rb b/db/migrate/20141214220056_add_translation_to_problem.rb index 02302e0..d19b9d7 100644 --- a/db/migrate/20141214220056_add_translation_to_problem.rb +++ b/db/migrate/20141214220056_add_translation_to_problem.rb @@ -1,4 +1,4 @@ -class AddTranslationToProblem < ActiveRecord::Migration +class AddTranslationToProblem < ActiveRecord::Migration[4.2] def change add_reference :problems, :translation, index: true end diff --git a/db/migrate/20141214221259_add_problem_to_translation.rb b/db/migrate/20141214221259_add_problem_to_translation.rb index c598504..5a057dd 100644 --- a/db/migrate/20141214221259_add_problem_to_translation.rb +++ b/db/migrate/20141214221259_add_problem_to_translation.rb @@ -1,4 +1,4 @@ -class AddProblemToTranslation < ActiveRecord::Migration +class AddProblemToTranslation < ActiveRecord::Migration[4.2] def change add_reference :translations, :problem, index: true end diff --git a/db/migrate/20150131103802_devise_create_admins.rb b/db/migrate/20150131103802_devise_create_admins.rb index 7c0e183..cdaa80a 100644 --- a/db/migrate/20150131103802_devise_create_admins.rb +++ b/db/migrate/20150131103802_devise_create_admins.rb @@ -1,4 +1,4 @@ -class DeviseCreateAdmins < ActiveRecord::Migration +class DeviseCreateAdmins < ActiveRecord::Migration[4.2] def change create_table(:admins) do |t| ## Database authenticatable