Git Product home page Git Product logo

postgres_ext's Introduction

This Gem is No Longer Maintained

It still works and may be useful to you for Rails versions < 5, but will not be updated to be compatible with Rails version > 5.

PostgresExt

Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x

Build Status Code Climate Gem Version

Looking for help?

If it is a bug please open an issue on Github. If you need help using the gem please ask the question on Stack Overflow. Be sure to tag the question with DockYard so we can find it.

Installation

Add this line to your application's Gemfile:

gem 'postgres_ext'

And then execute:

$ bundle

Or install it yourself as:

$ gem install postgres_ext

Usage

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.

Developing

To work on postgres_ext locally, follow these steps:

  1. Run bundle install, this will install (almost) all the development dependencies
  2. Run gem install byebug (not a declared dependency to not break CI)
  3. Run bundle exec rake db:setup, this will set up the .env file necessary to run the tests and set up the database
  4. Run bundle exec rake db:create, this will create the test database
  5. Run bundle exec rake db:migrate, this will set up the database tables required by the test
  6. Run BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.0.x' bundle install --quiet to create the Gemfile.lock for 4.0.
  7. Run BUNDLE_GEMFILE='gemfiles/Gemfile.activerecord-4.1.x' bundle install --quiet to create the Gemfile.lock for 4.1.
  8. Run bundle exec rake test:all to run tests against all supported versions of Active Record

Authors

Dan McClain twitter github

postgres_ext's People

Contributors

alno avatar andrewswerlick-hmn avatar azomazo avatar bcardarella avatar calebwoods avatar carlosantoniodasilva avatar ccutrer avatar daikini avatar daniel-xu avatar danmcclain avatar dirkkelly avatar doon avatar duggiefresh avatar edpaget avatar eidge avatar ezkl avatar felixbuenemann avatar fourseven avatar fschwahn avatar gilltots avatar jagregory avatar jaredbeck avatar jswanner avatar lfittl avatar mariovisic avatar matthewrdodds avatar omcnet avatar shekibobo avatar skandragon avatar vongruenigen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.