Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MatthewRDodds/e566e3447565fa929e613a3d48e93428 to your computer and use it in GitHub Desktop.
Save MatthewRDodds/e566e3447565fa929e613a3d48e93428 to your computer and use it in GitHub Desktop.
Add rails version numbers across migrations
# 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