Tidy up Installation instructions

Now they look prettier on hexdocs
This commit is contained in:
Martin Frost 2016-01-10 13:15:24 +01:00
parent 75b241bb00
commit 6709672540
1 changed files with 15 additions and 16 deletions

View File

@ -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