Skip to content

Commit

Permalink
Merge pull request #418 from dorner/db-create-for-rails-7-2
Browse files Browse the repository at this point in the history
Fix loading issue with rake db:create on Rails 7.2
  • Loading branch information
keithdoggett authored Nov 15, 2024
2 parents 2d87923 + 82aa002 commit eb475fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/active_record/connection_adapters/postgis_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,4 @@ def quote_default_expression(value, column)
spatial_ref_sys
topology
]
Tasks::DatabaseTasks.register_task(/postgis/, "ActiveRecord::Tasks::PostgreSQLDatabaseTasks")
end
1 change: 1 addition & 0 deletions lib/activerecord-postgis-adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
require "active_record/connection_adapters"
require "rgeo/active_record"
ActiveRecord::ConnectionAdapters.register("postgis", "ActiveRecord::ConnectionAdapters::PostGISAdapter", "active_record/connection_adapters/postgis_adapter")
ActiveRecord::Tasks::DatabaseTasks.register_task(/postgis/, "ActiveRecord::Tasks::PostgreSQLDatabaseTasks")

0 comments on commit eb475fb

Please sign in to comment.