Yeah, use the rake tasks
Cheers, Sazima
On Feb 8, 10:30 pm, stretch wrote:
> Another approach. To create the app with mysql in database.yml
>
> rails something -d mysql
>
> Get to the root directory of the app and create the dev db in
> specified in database.yml (assuming username and passwo
Another approach. To create the app with mysql in database.yml
rails something -d mysql
Get to the root directory of the app and create the dev db in
specified in database.yml (assuming username and password will work
for the database)
cd something
rake db:create
Then add a posts table
Create the table in phpmyadmin as you suggest, name the database
something_development. It is then linked to the rails application by
config\database.yml. You will need something in there like:
development:
adapter: mysql
database: something_development
username: username
password: passwor
ending with _development is the convention for the NAME of the dev db
not the tables
On Feb 8, 1:14 am, priyankeshu wrote:
> hi thre i have just started learning ROR (following video tutorial by
> VTC) but on the video they were teaching on MAC, i thought i can
> follow along on window with inst
4 matches
Mail list logo