I’m new to Ruby on Rails, and just want to ask, what do we mean when
typing this command:
$ rake db:create:all
Thanks.
I’m new to Ruby on Rails, and just want to ask, what do we mean when
typing this command:
$ rake db:create:all
Thanks.
On 21 June 2010 19:10, Abder-rahman Ali [email protected] wrote:
I’m new to Ruby on Rails, and just want to ask, what do we mean when
typing this command:$ rake db:create:all
It’s pretty self-explanatory - it creates all the databases for the
application (which are defined in database.yml)
Not hard to discover this either:
http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=rake+db:create:all
Michael P. wrote:
On 21 June 2010 19:10, Abder-rahman Ali [email protected] wrote:
I’m new to Ruby on Rails, and just want to ask, what do we mean when
typing this command:$ rake db:create:all
It’s pretty self-explanatory - it creates all the databases for the
application (which are defined in database.yml)Not hard to discover this either:
rake db:create:all - Google Search
Thanks Michael.
What is mean here by “Creating” a database. Is it to be built from
scratch?
On 21/06/2010 20:31, Abder-rahman Ali wrote:
What is mean here by “Creating” a database. Is it to be built from
scratch?
For future reference, if you execute rake -T, it will show you all the
rake tasks that have descriptions, together with a brief description,
e.g:
rake db:create:all # Create all the local
databases defined in config/database.yml
On 21 June 2010 19:31, Abder-rahman Ali [email protected] wrote:
Michael P. wrote:
It’s pretty self-explanatory - it creates all the databases for the
application (which are defined in database.yml)What is mean here by “Creating” a database. Is it to be built from
scratch?
Assuming you have a DB engine installed (MySQL, SQLite, etc) and
you’ve configured your config/database.yml file to use the DB engine,
but you haven’t “created” a database in your favoured engine - the
rake task will do that for you.
This stuff is all covered as pretty much step 1 in any Rails tutorial
you might find online, or follow in one of the books.
Regards,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs