title: Compatibility issue? rake db:migrate - wrong number of arguments (1 for 0)
body: <p>I'm trying to run a simple migration and I get this error. I think it's some kind of compatibility error. How can I fix it and how can I avoid compatibility issues in the future?    </p>
  
  <hr>
  
  <pre><code>Migration: `class CreateUsers &lt; ActiveRecord::Migration
    def change
      create_table :users do |t|
        t.string :nume
        t.string :email
        t.string :localitate
  
        t.timestamps 
      end
    end
  end
  ___________________
  </code></pre>
  
  <hr>
  
  <p>Gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '4.2.0.beta4'
  # Use sqlite3 as the database for Active Record
  gem 'sqlite3'
  # Use SCSS for stylesheets
  gem 'sass-rails', '~&gt; 5.0.0.beta1'
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  # Use CoffeeScript for .coffee assets and views
  gem 'coffee-rails', '~&gt; 4.1.0'
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  
  # Use jQuery as the JavaScript library
  gem 'jquery-rails', '~&gt; 4.0.0.beta2'
  # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
  gem 'turbolinks'
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 2.0'
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', '~&gt; 0.4.0', group: :doc
  
  # Use ActiveModel has_secure_password
  # gem 'bcrypt', '~&gt; 3.1.7'
  
  # Use Unicorn as the app server
  # gem 'unicorn'
  
  # Use Capistrano for deployment
  # gem 'capistrano-rails', group: :development
  
  group :development, :test do
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console
    gem 'byebug'
  
    # Access an IRB console on exception pages or by using &lt;%= console %&gt; in views
    gem 'web-console', '~&gt; 2.0.0.beta4'
  end
  
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :jruby]
  
  ___________
  </code></pre>
  
  <hr>
  
  <p>Error :</p>
  
  <p>wrong number of arguments (1 for 0)C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0
  .0/gems/activerecord-4.2.0.beta4/lib/active_record/connection_adapters/abstract_
  adapter.rb:271:in <code>initialize'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract_adapter.rb:271:in</code>new'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract_adapter.rb:271:in <code>substitute_at'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/relation.rb:97:in</code>block in substitute_values'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/relation.rb:96:in <code>each'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/relation.rb:96:in</code>each_with_index'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/relation.rb:96:in <code>substitute_values'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/relation.rb:56:in</code>insert'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/persistence.rb:521:in <code>_create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/counter_cache.rb:139:in</code>_create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/attribute_methods/dirty.rb:122:in <code>_create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/callbacks.rb:306:in</code>block in _create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:88:in <code>call'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:88:in</code>_run_callbacks'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:734:in <code>_run_create_callbacks'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/callbacks.rb:306:in</code>_create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/timestamp.rb:57:in <code>_create_record'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/persistence.rb:501:in</code>create_or_update'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/callbacks.rb:302:in <code>block in create_or_update'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:88:in</code>call'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:88:in <code>_run_callbacks'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0.beta4/l
  ib/active_support/callbacks.rb:734:in</code>_run_save_callbacks'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/callbacks.rb:302:in <code>create_or_update'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/persistence.rb:142:in</code>save!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/validations.rb:42:in <code>save!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/attribute_methods/dirty.rb:29:in</code>save!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:289:in <code>block in save!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:345:in</code>block in with_transaction_returning_stat
  us'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract/database_statements.rb:211:in <code>tran
  saction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:218:in</code>transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:342:in <code>with_transaction_returning_status'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:289:in</code>save!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/persistence.rb:51:in <code>create!'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:1015:in</code>record_version_state_after_migrating'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:985:in <code>block in execute_migration_in_transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:1030:in</code>block in ddl_transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract/database_statements.rb:213:in <code>bloc
  k in transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract/transaction.rb:188:in</code>within_new_t
  ransaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/connection_adapters/abstract/database_statements.rb:213:in <code>tran
  saction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/transactions.rb:218:in</code>transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:1030:in <code>ddl_transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:983:in</code>execute_migration_in_transaction'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:945:in <code>block in migrate'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:941:in</code>each'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:941:in <code>migrate'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:813:in</code>up'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/migration.rb:791:in <code>migrate'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/tasks/database_tasks.rb:137:in</code>migrate'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.0.beta4/li
  b/active_record/railties/databases.rake:44:in <code>block (2 levels) in &lt;top (require
  d)&gt;'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:240:in</code>call'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:240:in <code>block in execute'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:235:in</code>each'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:235:in <code>execute'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:179:in</code>block in invoke_with_call_chain'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/monitor.rb:211:in <code>mon_synchronize'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:172:in</code>invoke_with_call_chain'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/task.r
  b:165:in <code>invoke'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:156:in</code>invoke_task'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:112:in <code>block (2 levels) in top_level'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:112:in</code>each'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:112:in <code>block in top_level'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:121:in</code>run_with_threads'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:106:in <code>top_level'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:84:in</code>block in run'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:182:in <code>standard_exception_handling'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/lib/rake/applic
  ation.rb:79:in</code>run'
  C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rake-10.4.0/bin/rake:33:in
  <code>&lt;top (required)&gt;'
  C:/RailsInstaller/Ruby2.0.0/bin/rake:23:in</code>load'
  C:/RailsInstaller/Ruby2.0.0/bin/rake:23:in `'
  Tasks: TOP => db:migrate</p>