Closed liquidat closed 7 years ago
Hello
Same error here. First time i use a ruby program. Im on Centos7, i install ruby24 from SCL repository. gem install command complete without error, but pluto command return error :
> # pluto --version
> activerecord-utils/0.4.0 (activerecord/5.1.4) on Ruby 2.4.0 (2016-12-24) [x86_64-linux]
> /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activerecord-5.1.4/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 ActivityDb::CreateDb < ActiveRecord::Migration[4.2]
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activityutils-0.1.0/lib/activityutils/schema.rb:3:in `<module:ActivityDb>'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activityutils-0.1.0/lib/activityutils/schema.rb:1:in `<top (required)>'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activityutils-0.1.0/lib/activityutils.rb:5:in `<top (required)>'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/pluto-models-1.4.0/lib/pluto/models.rb:29:in `<top (required)>'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/pluto-1.2.3/lib/pluto.rb:3:in `<top (required)>'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> from /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/pluto-1.2.3/bin/pluto:3:in `<top (required)>'
> from /opt/rh/rh-ruby24/root/usr/local/bin/pluto:22:in `load'
> from /opt/rh/rh-ruby24/root/usr/local/bin/pluto:22:in `<main>'
>
Packages installed : rh-ruby24-rubygems, rh-ruby24, rh-ruby24-rubydevel and sqlite-devel.
Regards, Gamb.
@ggambini @liquidat Thanks for reporting (sorry I was on vacaction / offline last week). I've updated the pluto-models gem / library to support the latest (and greatest) version of ActiveRecord, that is, the 5.0 series. If you update the pluto-models gem (plus dependencies) it should now work (as advertised) with Ruby 2.3+ and ActiveRecord 5+ Happy planet. If you still run into problems / troubles, please report back. Thanks. Cheers.
I am trying to run pluto from within CentOS with ruby 2.3 installed. However, an error occurs stating that directly inheriting from ActiveRecord:Migration is not allowed:
The version is 2.3, I installed the necessary gems by
gem install pluto
:I can recreate the issue every time. In fact, so far I was not able to get pluto running anywhere. The aim is to set up a container image for at least two planets I am responsible for.