Active_record: wrong number of arguments (1 for 0)


#1

Hi all

I’m trying to deploy an older Rails app to a new hoster. I uploaded
everything, specified the db connection data and started the app.

Sadly I’m getting the following error:

ArgumentError: wrong number of arguments (1 for 0)
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:in
initialize' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:innew’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:in
scramble41' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:141:inreal_connect’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:331:in
connect' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:88:ininitialize’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
new' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:inmysql_connection’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in
send' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:inconnection_without_query_cache=’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in
connection=' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:220:inretrieve_connection’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
connection' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/base.rb:679:intable_exists?’
from
./script/…/config/…/config/…/vendor/plugins/schema_validations/lib/red_hill_consulting/schema_validations.rb:29:in
inherited' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/base.rb:253:ininherited’
from ./script/…/config/…/config/…/app/models/kurs.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:147:in
require' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:65:inrequire_or_load’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:30:in
depend_on' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:85:inrequire_dependency’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:98:in
const_missing' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:131:inconst_missing’
from (irb):1>>

Can anyone tell me what the problem could be?

Thanks,
Josh