Ruby on Rails
Friday, February 14, 2014
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:
Read more here: rake db:migratehttp://guides.rubyonrails.org/command_line.html
Regards
Gurpreet
On 14 February 2014 15:58, Juan Andres Rodriguez <enanosanlo@gmail.com> 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:client endbut 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 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/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 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/CAHKR60yML9Xe0B6CHr6dVqS0xD6RHcwSDJPtUr8RsdXamZUWjA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment