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

Few issues due to Ruby old version #35

Open
alsilva86 opened this issue Jun 28, 2017 · 0 comments
Open

Few issues due to Ruby old version #35

alsilva86 opened this issue Jun 28, 2017 · 0 comments

Comments

@alsilva86
Copy link

Hi! I want to test your solution, I have been trying to follow the instructions on your website to install.
Here is where I got stucked.
I followed instructions to install Ruby (2.1.0) unsupported.

Changed in 20140313044626_create_projects.rb
from ActiveRecord::Migration
to
class CreateProjects < ActiveRecord::ConnectionAdapters::Mysql2Adapter
I do successfuly the rake::create

When I try: rake::migrate

ubuntu@ip-172-31-24-23:/fluxday-master/config$ rake db:migrate --trace
(in /home/ubuntu/fluxday-master)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
rake aborted!
ArgumentError: wrong number of arguments (0 for 4)
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/mysql2_adapter.rb:35:in initialize' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:719:in new'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:719:in load_migration' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:714:in migration'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:708:in disable_ddl_transaction' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:1012:in use_transaction?'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:922:in rescue in block in migrate' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:919:in block in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:916:in each' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:916:in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:764:in up' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:742:in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/railties/databases.rake:42:in block (2 levels) in <top (required)>' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in call'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in block in execute' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in execute' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:180:in invoke' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block (2 levels) in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in each'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:102:in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:80:in block in run'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178:in standard_exception_handling' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:77:in run'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/exe/rake:27:in <top (required)>' /home/ubuntu/.rbenv/versions/2.1.0/bin/rake:23:in load'
/home/ubuntu/.rbenv/versions/2.1.0/bin/rake:23:in <main>' ArgumentError: wrong number of arguments (0 for 4) /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/mysql2_adapter.rb:35:in initialize'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:719:in new' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:719:in load_migration'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:714:in migration' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:708:in disable_ddl_transaction'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:1012:in use_transaction?' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:1004:in ddl_transaction'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:958:in execute_migration_in_transaction' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:920:in block in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:916:in each' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:916:in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:764:in up' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/migration.rb:742:in migrate'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.0.3/lib/active_record/railties/databases.rake:42:in block (2 levels) in <top (required)>' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in call'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in block in execute' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in execute' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:180:in invoke' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block (2 levels) in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in each'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:102:in top_level' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:80:in block in run'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178:in standard_exception_handling' /home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:77:in run'
/home/ubuntu/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-12.0.0/exe/rake:27:in <top (required)>' /home/ubuntu/.rbenv/versions/2.1.0/bin/rake:23:in load'
/home/ubuntu/.rbenv/versions/2.1.0/bin/rake:23:in `

'
Tasks: TOP => db:migrate
ubuntu@ip-172-31-24-23:/fluxday-master/config$

Could you please let me know what am I missing?

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

No branches or pull requests

1 participant