Rails looks at the migrations table to figure out what migrations are
pending. Run this command to fix the migrations first, and then run your
rails app:

rake db:migrate

Read more here:
http://guides.rubyonrails.org/command_line.html

Regards
Gurpreet



On 14 February 2014 15:58, Juan Andres Rodriguez <[email protected]>wrote:

> I have generated a model and a controller in *rails 4*,Client and
> ClientsController, and configure the database.yml with the postgres
> adapater and the database name, and i want that rails get the table
> attributes from the clients table and generate the forms and all the
> scaffolding CRUD operations. I've seen in the web some similar solutions
> but with mysql database and i think with rails 3:
>
> class ClientsController < ApplicationController
>   scaffold:clientend
>
>  but when calling any of the web urls, rails advertised that i have *pending 
> migrations*, and if you think about it i dont need to migrate the
>  model because is already in the database....
>
> any help is welcome !
>
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/2926f694-b87e-4310-8494-205ea11dfcfc%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHKR60yML9Xe0B6CHr6dVqS0xD6RHcwSDJPtUr8RsdXamZUWjA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to