From d35b76283bb1de54907e797ebcd4f3885a28a82c Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Wed, 23 Jan 2013 20:45:31 +0530 Subject: Add new DB rake tasks to the contributing section. --- guides/source/development_dependencies_install.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'guides') diff --git a/guides/source/development_dependencies_install.md b/guides/source/development_dependencies_install.md index db43d62fcf..6493c1e1ec 100644 --- a/guides/source/development_dependencies_install.md +++ b/guides/source/development_dependencies_install.md @@ -174,6 +174,20 @@ $ cd activerecord $ bundle exec rake postgresql:build_databases ``` +It is possible to build databases for both PostgreSQL and MySQL with + +```bash +$ cd activerecord +$ bundle exec rake db:create +``` + +You can cleanup the databases using + +```bash +$ cd activerecord +$ bundle exec rake db:drop +``` + NOTE: Using the rake task to create the test databases ensures they have the correct character set and collation. NOTE: You'll see the following warning (or localized warning) during activating HStore extension in PostgreSQL 9.1.x or earlier: "WARNING: => is deprecated as an operator". -- cgit v1.2.3