Update migrations to include their versions

This commit is contained in:
pfischbeck committed 2017-11-23 14:08:26 +01:00
1 parent 5c41656a63
commit 0a32949115
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
class CreateProblems < ActiveRecord::Migration class CreateProblems < ActiveRecord::Migration[4.2]
def change def change
create_table :problems do |t| create_table :problems do |t|
t.string :title t.string :title
@@ -1,4 +1,4 @@
class RenameProblemsTableToTranslations < ActiveRecord::Migration class RenameProblemsTableToTranslations < ActiveRecord::Migration[4.2]
def change def change
rename_table :problems, :translations rename_table :problems, :translations
end end
@@ -1,4 +1,4 @@
class CreateProblemsAgain < ActiveRecord::Migration class CreateProblemsAgain < ActiveRecord::Migration[4.2]
def change def change
create_table :problems do |t| create_table :problems do |t|
t.timestamps null: true t.timestamps null: true
@@ -1,4 +1,4 @@
class AddTranslationToProblem < ActiveRecord::Migration class AddTranslationToProblem < ActiveRecord::Migration[4.2]
def change def change
add_reference :problems, :translation, index: true add_reference :problems, :translation, index: true
end end
@@ -1,4 +1,4 @@
class AddProblemToTranslation < ActiveRecord::Migration class AddProblemToTranslation < ActiveRecord::Migration[4.2]
def change def change
add_reference :translations, :problem, index: true add_reference :translations, :problem, index: true
end end
@@ -1,4 +1,4 @@
class DeviseCreateAdmins < ActiveRecord::Migration class DeviseCreateAdmins < ActiveRecord::Migration[4.2]
def change def change
create_table(:admins) do |t| create_table(:admins) do |t|
## Database authenticatable ## Database authenticatable