Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version to migration file if rails5+ #96

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Arinzeokeke
Copy link

Rails5+ requires migration version included in the migration file superclass
eg: class ActsAsFollowerMigration < ActiveRecord::Migration[5.1]

Migrations are versioned in Rails 5.
Rails 5+ requires the rails version specified and throws an error during migration if not specified.
Compatible with previous Rails versions
Add migration version in migration file  if rails5+.
 Doesnt add if  Rails::VERSION::MAJOR < 5.
add back migration_version
@Arinzeokeke
Copy link
Author

The Travis CI test for RAILS_VERSION=5.0.0.1 is failing. I thought it was the changes I made, I removed all code added by me and it was still failing. Looks like they are unrelated. I've added back my changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant