Tidy up Installation instructions
Now they look prettier on hexdocs
This commit is contained in:
parent
75b241bb00
commit
6709672540
31
README.md
31
README.md
|
|
@ -37,25 +37,24 @@ end
|
|||
|
||||
## Installation
|
||||
|
||||
1. Add the package to your Mixfile:
|
||||
```elixir
|
||||
defp deps do
|
||||
[{:isn, "~> 0.1"}]
|
||||
end
|
||||
```
|
||||
**Add the package to your Mixfile**
|
||||
|
||||
2. Add the isn extension to your database
|
||||
```
|
||||
mix do isn.gen.migration, ecto.migrate
|
||||
```
|
||||
```elixir
|
||||
defp deps do
|
||||
[{:isn, "~> 1.0"}]
|
||||
end
|
||||
```
|
||||
|
||||
3. Register the postgrex extension in your Repo config
|
||||
```elixir
|
||||
config :books, MyApp.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
extensions: [{ISN, []}]
|
||||
**Add the isn extension to your database**
|
||||
|
||||
```
|
||||
mix do isn.gen.migration, ecto.migrate
|
||||
|
||||
**Register the postgrex extension in your Repo config**
|
||||
```elixir
|
||||
config :books, MyApp.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
extensions: [{ISN, []}]
|
||||
```
|
||||
|
||||
## Defined types
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue