Skip to content

dealglobe/ar_jsonb_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArJsonbExt

Short description and motivation.

Usage

  • common
class User
  include ArJsonbExt
end
  • jattr_acessor
class User
  jattr_acessor *i%(order limit)

  jattr_acessor *i%(ticket number), column: :meta, i18n: true, method_prefix: :meta
end
  • soft_destroy
class User
  soft_destroy
  soft_destroy :jdeleted_at, scope: true, column: :meta_info
  soft_destroy :is_deleted
end

Installation

Add this line to your application's Gemfile:

gem 'ar_jsonb_ext', github: 'dealglobe/ar_jsonb_ext'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ar_jsonb_ext

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

About

Postgres Jsonb extension for ActiveRecord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages