On 27 January 2016 at 13:32, Benyamin Pm <lists@ruby-forum.com> wrote:
> i have problem with 'rake db:migrate'
>
> i use this tutorial =>
> http://www.tutorialspoint.com/ruby-on-rails/rails-routes.htm
>
> form first step to this step.
>
> when i type 'rake db:migrate' in my terminal.
>
> i get this error =>
>
> == 20160127215334 Books: migrating
> ============================================
> -- create_table(:books)
> rake aborted!
> StandardError: An error has occurred, this and all later migrations
> canceled:
>
> PG::DuplicateTable: ERROR: relation "books" already exists
> : CREATE TABLE "books" ("id" serial primary key, "title" character
> varying(32) NOT NULL, "price" float, "subject_id" integer, "description"
> text, "created_at" timestamp)
The error indicates that the migration calls for the creation of the
books table, but that table already exists.
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%3D0gLt%2B2V4hrNtn%2BrQqPZXNxw9%2Bx1nGXHZjKg0uP_dmc_ArMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment