danmcclain/postgres_ext(opens in a new tab)
Language: Ruby
- stars
- 8
- watchers
- 1
- forks
- 6
- open issues
- 3
- Last updated
- 03/08/2019
Language: Ruby
This gem could use some updating, and I've moved on from Ruby, but I'd like to see this gem continue to survive. If you're interested in helping maintain the gem, please reach out on twitter.
Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x
Bug or question? Please open an issue on Github.
Add this line to your application's Gemfile:
gem 'postgres_ext'
And then execute:
$ bundle
Or install it yourself as:
$ gem install postgres_ext
Just require 'postgres_ext' and use ActiveRecord as you normally would! postgres_ext extends
ActiveRecord's data type handling and query methods in both Arel and
ActiveRecord.
Where are the datatypes from PostgresExt 1.x? ActiveRecord 4.x includes all the data types that PostgresExt added to ActiveRecord 3.2.x. We'll be adding more datatypes as we come across them.
To work on postgres_ext locally, follow these steps:
bundle install, this will install (almost) all the development
dependenciesgem install byebug (not a declared dependency to not break CI)bundle exec rake db:setup, this will set up the .env file necessary to run
the tests and set up the databasebundle exec rake db:create, this will create the test databasebundle exec rake db:migrate, this will set up the database tables required
by the testBUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.0.x' bundle install --quiet to create the Gemfile.lock for 4.0.BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.1.x' bundle install --quiet to create the Gemfile.lock for 4.1.bundle exec rake test:all to run tests against all supported versions of Active Record