Skip to content

Commit

Permalink
Update README to extend Timescaledb::ActsAsHypertable in a lazy load …
Browse files Browse the repository at this point in the history
…hook (#75)
  • Loading branch information
ryoung authored Nov 28, 2024
1 parent 15279bc commit 17970b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ which will correctly handle schema dumping.
Create your `config/initializers/timescaledb.rb` file and add the following line:

```ruby
ActiveRecord::Base.extend Timescaledb::ActsAsHypertable
ActiveSupport.on_load(:active_record) { extend Timescaledb::ActsAsHypertable }
```

You can declare a Rails model as a Hypertable by invoking the `acts_as_hypertable` macro. This macro extends your existing model with timescaledb-related functionality.
Expand Down

0 comments on commit 17970b0

Please sign in to comment.