Ruby on Rails Friday, May 22, 2015

I know how to connect a Rails app to a PG database.  My question is about how to align the Rails contents (model definitions) with the database contents (table definitions), so that the app can read from and write to the tables. 

It think perhaps you're answering "yes" to my question 2 - that is, I can keep the app and database contents aligned without using "Rails functionality" by editing them manually.  Right?

That still leaves question 1 and 3 unanswered.

On Friday, May 22, 2015 at 4:05:01 PM UTC-4, Elizabeth McGurty wrote:
You don't always have to work with Rails functionality to utilize a database, not sure always true for PostgreSQL.  The critical aspect is how you define your database connectivity in config/database.yml. 

Perhaps helpful, check out brilliant Ryan Bates' RailsCast:  http://railscasts.com/episodes/342-migrating-to-postgresql

Liz 

--
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/a8c20e56-413f-4b07-9ab6-e7f118a95dd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment