Setting up ruby on rails databases

This was not 100% clear to me. But in order to set up your development databases you can just do:

rake db:migrate

But in order to get the database set up for production, you do:

rake db:migrate RAILS_ENV=production

I don’t exactly remember what I did to create the database for testing.

Advertisements

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: