Skip to content

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