Ruby on Rails
Sunday, November 30, 2014
I just encountered this issue as well. This is due to an update in Arel. You should be able to solve it by adding an explicit version requirement to your Gemfile or drop back to a stable rails version as mentioned.
gem 'arel', '6.0.0.beta2'
On Sun, Nov 30, 2014 at 2:52 PM, Colin Law <clanlaw@gmail.com> wrote:
The first thing I would do is drop back to a released version of rubyOn 30 November 2014 at 20:54, Roelof Wobben <rwobben@hotmail.com> wrote:
> Hello,
>
> I have this migration file :
>
> class CreateUsers < ActiveRecord::Migration
> def change
> create_table :users do |t|
> t.string :name
> t.string :email
> t.timestamps null: false
> end
> end
> end
>
> but as soon as I do rake db:migrate I see this errors appear:
>
> bundle exec rake db:migrate
> == 20141130204806 CreateUsers: migrating
> ======================================
> -- create_table(:users)
> -> 0.0279s
> == 20141130204806 CreateUsers: migrated (0.0281s)
> =============================
> rake aborted!
> StandardError: An error has occurred, this and all later migrations
> canceled:
> wrong number of arguments (1 for
> 0)/usr/local/rvm/gems/ruby-2.1.4@rails4/gems/activerecord-4.2.0.beta4/lib/active_record/connection_adapters/abstract_adapter.rb:271:in
rather than a beta version. That is 4.1.8 I think. It may not be the
problem but I would try it first.
Also what version of rubygems are you using?
gem -v
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLspKq8RHs9LuAhrufxHPvL5Gq%2BaeAtvPW28fNkTdY0Gvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Daniel Evans
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAD2%3DUWVhd4XuZ8Z-MAwMdhmFqDhizx4-p%3DR7d5ztTuqpfSCDfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment