Closed artemave closed 5 years ago
As far as I can tell this is blocking using apartment on Heroku, since their environment seems to always use pg_dump from version 11. Would be really nice to see this merged, if anyone is still maintaining this.
I am also blocked in Heroku -- is someone going to merge this?
Thanks for this. As a future reference (and for other ones having issues), this PR allows me to use schemas instead of separate DB connections and use UUID primary keys (e.g. using the following schema) with Postgres 11. Previously we had to opt for separate databases but we think that there are some threading issues with that approach. Anyway, it works now with the following setup:
# schema.rb
create_table "foos", id: :uuid, default: -> { "gen_random_uuid()" }, #...
My Apartment config looks like this:
# apartment.rb
Apartment.configure do |config|
config.use_schemas = true
config.use_sql = true
config.pg_excluded_names = ["uuid_generate_v4", "gen_random_uuid"]
end
Are there any plans to release a new version of the gem that includes this and other recent PRs soon?
@K1N5L4Y3R yep i'll cut the release in the next couple of days just want to work through the rest of the backlog first see if there's any other low hanging fruit
Hey @mikecmpbll , thanks for your answer. This is a kind reminder about the release. Anything I or the community can do to help to expedite it?
whoops done as 2.2.1 :)
Fixes https://github.com/influitive/apartment/issues/581