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

Update migration with version number for rails 5.1 #2

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

Conversation

gdomingu
Copy link

@gdomingu gdomingu commented Jan 2, 2020

Without this change will get the following error with rails 5.1.7 and the rails server will crash.

/home/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.7/lib/active_record/migration.rb:525:in `inherited': Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for: (StandardError)
class EntityStorage::AddEntitiesTable < ActiveRecord::Migration[4.2]
from /home/app/vendor/bundle/ruby/2.4.0/gems/entity_storage-2.1.6/lib/entity_storage.rb:76:in `<module:EntityStorage>'
from /home/app/vendor/bundle/ruby/2.4.0/gems/entity_storage-2.1.6/lib/entity_storage.rb:11:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `require'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
from /usr/local/rvm/rubies/ruby-2.4.6/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'

Will throw an error without it starting in rails 5.1
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

1 participant