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

Migrations need to be updated to Rails 5.x #96

Closed
scarroll32 opened this issue Nov 28, 2018 · 3 comments
Closed

Migrations need to be updated to Rails 5.x #96

scarroll32 opened this issue Nov 28, 2018 · 3 comments

Comments

@scarroll32
Copy link

StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateActivityNotificationTables < ActiveRecord::Migration[4.2]
/Users/sean/src/immersive/immersive/db/migrate/20181128164307_create_activity_notification_tables.rb:2:in `<main>'
/Users/sean/src/immersive/immersive/bin/rails:9:in `<top (required)>'
/Users/sean/src/immersive/immersive/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'

Caused by:
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateActivityNotificationTables < ActiveRecord::Migration[4.2]
@scarroll32
Copy link
Author

Fixed by adding the Rails version.

class CreateActivityNotificationTables < ActiveRecord::Migration[5.2]

@simukappu simukappu added the bug label Dec 2, 2018
@simukappu
Copy link
Owner

Thank you for your reporting! We will fix it. In addition, we have to add migration test with generated migration file from the template.

@simukappu
Copy link
Owner

Fixed and released as v1.7.0.

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

No branches or pull requests

2 participants