On Wed, May 1, 2013 at 8:09 AM, Wins Lin <lists@ruby-forum.com> wrote:
> I used MySQL as a backend before. Now I had to move to PG since Heroku
> doesn't have MySQL and forces everyone to use their Heroku-PG database.
Not really. You can run MySQL locally and use PG on Heroku.
> But PG virsion of Rails works diffidently. I cannot generate a model
> without PG server running:
>>> C:\ruby\Heroku\App>rails generate model Products
Maybe it's a Windows thing? I ran that exact command in a test app
with PG not running and it was fine. Trying to access the model in a
console expectedly threw an error.
> How to turn off this behavior of PG? I don't want to start PG server
> every time I just need to run some rails|rake task.
Why would you start and stop it at all? If that's what you're using,
start it at boot time and forget about it.
FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment