Skip to content

Commit

Permalink
Fix AR tests, update version and history
Browse files Browse the repository at this point in the history
  • Loading branch information
keithdoggett committed Oct 6, 2023
1 parent 8fb63ee commit eed1212
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ group :development do
# Gems used by the ActiveRecord test suite
gem "bcrypt"
gem "mocha"
gem "sqlite3"
gem "msgpack"
end
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 9.0.0 / 2023-10-06

* Rails 7.1 support (seuros) #382

### 8.0.3 / 2023-10-05

* Fix `default_function` schema dumping in virtual columns (wizardofelves) #383
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/postgis/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveRecord
module ConnectionAdapters
module PostGIS
VERSION = "8.0.3"
VERSION = "9.0.0"
end
end
end
4 changes: 2 additions & 2 deletions test/schema/postgis_specific_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# suite.

ActiveRecord::Schema.define do
enable_extension!("uuid-ossp", ActiveRecord::Base.connection)
enable_extension!("pgcrypto", ActiveRecord::Base.connection) if ActiveRecord::Base.connection.supports_pgcrypto_uuid?
ActiveRecord::TestCase.enable_extension!("uuid-ossp", ActiveRecord::Base.connection)
ActiveRecord::TestCase.enable_extension!("pgcrypto", ActiveRecord::Base.connection) if ActiveRecord::Base.connection.supports_pgcrypto_uuid?

uuid_default = connection.supports_pgcrypto_uuid? ? {} : { default: "uuid_generate_v4()" }

Expand Down

0 comments on commit eed1212

Please sign in to comment.