Ruby on Rails Sunday, November 30, 2014

Thanks, that did the trick.

I use the beta versions because on the online tutorial from Hartl that versions are mentioned and he says not to use any other version to follow the tutorial.

Roelof

Op zondag 30 november 2014 23:47:59 UTC+1 schreef Daniel Evans:
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 <cla...@gmail.com> wrote:
On 30 November 2014 at 20:54, Roelof Wobben <rwo...@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

The first thing I would do is drop back to a released version of ruby
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@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/d53ee3c8-451b-4682-9a09-1a3e59d05db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment