@@ -21,7 +21,8 @@ The easiest and recommended way to get a development environment ready to hack i
The Hard Way
------------
In case you can't use the Rails development box, see section below, these are the steps to manually build a development box for Ruby on Rails core development.
In case you can't use the Rails development box, see the steps below to manually
build a development box for Ruby on Rails core development.
@@ -260,34 +261,34 @@ with your development account, on Linux or BSD, you just have to run:
$ sudo-u postgres createuser --superuser$USER
```
and for OS X:
and for macOS:
```bash
$ createuser --superuser$USER
```
Then you need to create the test databases with
Then, you need to create the test databases with:
```bash
$ cd activerecord
$ bundle exec rake db:postgresql:build
```
It is possible to build databases for both PostgreSQL and MySQL with
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
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: 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".
...
...
@@ -303,7 +304,7 @@ Redis' documentation discourage installations with package managers as those are
#### Install Redis From Package Manager
On OS X, you can run:
On macOS, you can run:
```bash
$ brew install redis
...
...
@@ -311,7 +312,7 @@ $ brew install redis
Follow the instructions given by Homebrew to start these.
In Ubuntu just run:
On Ubuntu, just run:
```bash
$ sudo apt-get install redis-server
...
...
@@ -323,7 +324,7 @@ On Fedora or CentOS (requires EPEL enabled), just run:
$ sudo yum install redis
```
If you are running Arch Linux just run:
If you are running Arch Linux, just run:
```bash
$ sudo pacman -S redis
...
...
@@ -346,7 +347,7 @@ prerequisite for installing this package manager is that