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 migration version to migrations #82

Closed

Conversation

jordan-brough
Copy link
Contributor

@jordan-brough jordan-brough commented Feb 27, 2017

To eliminate this deprecation warning:

DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for

To eliminate this deprecation warning:

    DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for
@jordan-brough jordan-brough force-pushed the specify-migration-version branch from 0079fe5 to 7ca771d Compare February 27, 2017 20:34
@stewart
Copy link
Contributor

stewart commented Feb 27, 2017

As this extension still needs to support older versions of Solidus on Rails 4.2, I don't think we can do this.

@jordan-brough jordan-brough force-pushed the specify-migration-version branch from 3311388 to dc1a5f3 Compare March 1, 2017 00:18
Since this gem is trying to stay compatible with Rails 4.2+.
@jordan-brough jordan-brough force-pushed the specify-migration-version branch from dc1a5f3 to 80c24b8 Compare March 1, 2017 03:09
@stewart
Copy link
Contributor

stewart commented Mar 1, 2017

I would strongly prefer not to add a new class method to Spree::Auth, for the sole purpose of eliminating these deprecation warnings.

Until Rails begins mandating pinning migration versions, or this extension exclusively supports Rails 5+, I believe the best course of action is to leave the migrations as-is.

@stewart stewart closed this Mar 1, 2017
@Sinetheta
Copy link
Contributor

In rails 5.1 this is no longer just a warning.

Raise when ActiveRecord::Migration is inherited from directly.
CHANGELOG.md

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.

3 participants