Re: [Rails] rake db:reset doesn't work, fails with unknown attribute: user_status
On 18 February 2012 16:42, S Ahmed <sahmed1020@gmail.com> wrote:
> If I manually drop the database, and run create, then migrate it works fine.
>
> But doing a:
>
> rake db:reset
>
> it fails with:
>
> unknown attribute: user_status
>
>
> Does this mean my migrations are not dropping things correctly?
I believe that rake db:reset re-creates the db and loads the schema
from schema.rb rather than running the migrations [1]. Is there
something odd in schema.rb, possibly related to user_status?
[1] http://guides.rubyonrails.org/migrations.html#resetting-the-database
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home