Add version identifier to old migrations (required for Rails 5)

This commit is contained in:
Sebastian Serth
2018-11-22 19:05:19 +01:00
parent 0fbbe97ae4
commit 44dc18feb0
125 changed files with 125 additions and 125 deletions

View File

@@ -1,4 +1,4 @@
class CreateExerciseCollectionItems < ActiveRecord::Migration
class CreateExerciseCollectionItems < ActiveRecord::Migration[4.2]
def up
rename_table :exercise_collections_exercises, :exercise_collection_items
add_column :exercise_collection_items, :position, :integer, default: 0, null: false