Skip to content

Commit

Permalink
Merge pull request #678 from ytjmt/fix-readme
Browse files Browse the repository at this point in the history
docs: fix README
  • Loading branch information
kbrock authored Feb 29, 2024
2 parents c2df44c + 2e7a530 commit d2e2f2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ You may be able to alter the database to gain some readability:
ALTER DATABASE dbname SET bytea_output to 'escape';
```

## Mysql Storage options
## MySQL Storage options

### ascii field collation

The currently suggested way to create a postgres field is using `'C'` collation:
The currently suggested way to create a MySQL field is using `'utf8mb4_bin'` collation:

```ruby
t.string "ancestry", collation: 'utf8mb4_bin', null: false
Expand All @@ -402,7 +402,7 @@ t.index "ancestry"

### ascii character set

Mysql supports per column character sets. Using a character set of `ascii` will
MySQL supports per column character sets. Using a character set of `ascii` will
set this up.

```SQL
Expand Down Expand Up @@ -462,7 +462,7 @@ Model.check_ancestry_integrity!
```

It is time to run your code. Most tree methods should work fine with ancestry
and hopefully your tests only require a few minor tweaks to get up and runnnig.
and hopefully your tests only require a few minor tweaks to get up and running.

Once you are happy with how your app is running, remove the old `parent_id` column:

Expand Down

0 comments on commit d2e2f2a

Please sign in to comment.