Ruby on Rails Sunday, November 30, 2014

On 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

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-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.

No comments:

Post a Comment