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

fix migration version and updated old rails methods into rails migrat… #3100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlosdanielpohlod
Copy link

…ions

Checklist

  • [ x] I have read the Contribution & Best practices Guide.
  • [x ] My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works(if appropriate).
  • I have added necessary documentation (if appropriate).

This merge request adds a version into ActiveRecord::Migration for old migrations to avoid the related exception.
Also, old rails methods used in migrations are replaced with your new versions.

Relationed issues:
#3099
#2665

Changes proposed in this pull request:

changes ActiveRecord::Migration to ActiveRecord::Migration[compatible version] in migration files;

changes use of update_attributes to update into migration;

changes get_all_versionsto the current version into the migration file

@carlosdanielpohlod
Copy link
Author

@hennevogel

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.

None yet

2 participants