Skip to content

Commit

Permalink
Remove loading extension step from Ruby quick start (#2650)
Browse files Browse the repository at this point in the history
The extension should already be loaded when connecting to a Timescale service or installing TimescaleDB

Signed-off-by: Solar Olugebefola <12288273+solugebefola@users.noreply.github.com>
Co-authored-by: Lana Brindley <github@lanabrindley.com>
Co-authored-by: Rajakavitha Kodhandapani <krajakavitha@gmail.com>
  • Loading branch information
3 people authored Aug 28, 2023
1 parent d3ccf4a commit da234c0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions quick-start/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ on Rails application.
A new migration file `<migration-datetime>_add_timescale.rb` is created in
the `my_app/db/migrate` directory.

1. Update the contents of the `<migration-datetime>_add_timescale.rb` file with
these instructions to load the TimescaleDB extension to PostgreSQL:

```ruby
class AddTimescale < ActiveRecord::Migration[7.0]
def change
enable_extension("timescaledb") unless extensions.include? "timescaledb"
end
end
end
```

1. Add the TimescaleDB extension to the PostgreSQL database:

```ruby
rails db:migrate
```

1. Connect to TimescalDB Cloud using Rails:

```bash
Expand Down

0 comments on commit da234c0

Please sign in to comment.