Skip to content

Commit

Permalink
stree
Browse files Browse the repository at this point in the history
  • Loading branch information
waymondo committed Oct 11, 2024
1 parent add8986 commit ccd7f21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hoardable ![gem version](https://img.shields.io/gem/v/hoardable?style=flat-square)

Hoardable is an ActiveRecord extension for Ruby 3.1+, Rails 7+, and PostgreSQL 9+ that allows for
Hoardable is an ActiveRecord extension for Ruby 3+, Rails 7+, and PostgreSQL 9+ that allows for
versioning and soft-deletion of records through the use of _uni-temporal inherited tables_.

[Temporal tables](https://en.wikipedia.org/wiki/Temporal_database) are a database design pattern
Expand Down Expand Up @@ -496,6 +496,14 @@ Instead of storing the previous versions or changes in a separate table, it stor
proprietary JSON format directly on the database row of the record itself. If does not support soft
deletion.

## Testing

Hoardable is tested against a matrix of Ruby 3 versions and Rails 7 & 8. To run tests locally, run:

```
rake
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/waymondo/hoardable.
Expand Down
4 changes: 1 addition & 3 deletions test/test_schema_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class TestSchemaDumper < ActiveSupport::TestCase
private def dump_table_schema(*table_names)
connection = ActiveRecord::Base.connection
ActiveRecord::SchemaDumper.ignore_tables = connection.data_sources - table_names
output, = capture_io do
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool)
end
output, = capture_io { ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool) }
output
end
end

0 comments on commit ccd7f21

Please sign in to comment.