mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Update migrations to include their versions
This commit is contained in:
parent
5c41656a63
commit
0a32949115
@ -1,4 +1,4 @@
|
||||
class CreateProblems < ActiveRecord::Migration
|
||||
class CreateProblems < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :problems do |t|
|
||||
t.string :title
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
class RenameProblemsTableToTranslations < ActiveRecord::Migration
|
||||
class RenameProblemsTableToTranslations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
rename_table :problems, :translations
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
class AddTranslationToProblem < ActiveRecord::Migration
|
||||
class AddTranslationToProblem < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_reference :problems, :translation, index: true
|
||||
end
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
class AddProblemToTranslation < ActiveRecord::Migration
|
||||
class AddProblemToTranslation < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_reference :translations, :problem, index: true
|
||||
end
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
class DeviseCreateAdmins < ActiveRecord::Migration
|
||||
class DeviseCreateAdmins < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table(:admins) do |t|
|
||||
## Database authenticatable
|
||||
|
||||
Loading…
Reference in New Issue
Block a user