Juan Andres Rodriguez
2014-Feb-14 10:28 UTC
Active Record from an existing PostgreSQL database
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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.