Created
January 7, 2019 20:56
-
-
Save MatthewRDodds/e566e3447565fa929e613a3d48e93428 to your computer and use it in GitHub Desktop.
Add rails version numbers across migrations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/48815984/rails5-directly-inheriting-from-from-activerecordmigration-is-not-supported-s | |
grep -rl "ActiveRecord::Migration" db | xargs sed -i "" "s/ActiveRecord::Migration/ActiveRecord::Migration[5.1]/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment