Generated rails 4.2.0 app and added activerecord-postgis-adapter and edited the database.yml file accordingly.
But now when I do rake db:create
, it blows with the error:
± be rake db:create 2.1.0
rake aborted!
NameError: uninitialized constant ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition
/Users/millisami/Railsapps/showme/config/application.rb:16:in `<top (required)>'
/Users/millisami/Railsapps/showme/Rakefile:4:in `require'
/Users/millisami/Railsapps/showme/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Apparently, the activerecord-postgis-adapter
gem is not yet compatible with ActiveRecord 4.2.
Either use the standard pg
gem (that is supported natively by ActiveRecord), or downgrade to 4.1.
Version 3.0.0 of activerecord-postgis-adapter
has been released. It supports ActiveRecord 4.2.
gem "activerecord-postgis-adapter"
https://github.com/rgeo/activerecord-postgis-adapter
https://rubygems.org/gems/activerecord-postgis-adapter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With