Bitchin: Easy Key/Value Fields for Rails Using Bit Fields or Hashes
Ben Kittrell
06/06/2010 02:53AM
Document databases are definitely hot right now, and for good reason. I've thought relational databases were wasted on most web apps for a long time and I'm seriously considering switching Doodlekit to something like MongoDB.
In the meantime (ie. while I get my ass caught up) I wrote a simple plugin to make it super easy to add properties to your ActiveRecord models without needing table columns for all of them.
Nothing earth-shattering, just a cool little plugin I wanted to share.
I call it Bitchin.
There are two parts to it, Bitchin and Hashed. The only difference is that Bitchin uses a Bit Field so it can only store boolean fields which means it's much faster. As long as you have an Integer called bit_flag in your table you just need to do this...
And the accessors are automatically created for you...
More about configuration options and how to use in the README.
This plugin is under the Do Whatever The Fuck You Want With It License (WTFYWL)
In the meantime (ie. while I get my ass caught up) I wrote a simple plugin to make it super easy to add properties to your ActiveRecord models without needing table columns for all of them.
Nothing earth-shattering, just a cool little plugin I wanted to share.
I call it Bitchin.
There are two parts to it, Bitchin and Hashed. The only difference is that Bitchin uses a Bit Field so it can only store boolean fields which means it's much faster. As long as you have an Integer called bit_flag in your table you just need to do this...
class User < ActiveRecord::Base
bitchin :active, :banned, :stupid
And the accessors are automatically created for you...
user.stupid = true
user.stupid? #=> true
user.stupid #=> true
Hashed works the same way but it relies on ActiveRecord's built-in hash serialization so you can basically store any scalar value.More about configuration options and how to use in the README.
This plugin is under the Do Whatever The Fuck You Want With It License (WTFYWL)
Comments
Old milestones will be continually striking fecal material a variety, for example the initially auto timepiece, when is a specialised level of quality and/or ground breaking style and design of your timepiece.
I visit your site first time but i am really very impressed your "Easy Key/Value Fields for Rails" post because your all post really awesome all point of view, I appreciate your hard working. For sale best gymnastic mats in Uk visit http://gymnasticmatsuk.co.uk/ for more detail.
good post.
https://ahref.site/4ar5Y/
https://ahref.site/4ar5b/
https://ahref.site/4ar5a/
https://ahref.site/4ar5c/
https://ahref.site/4ar5d/
iphone 8 price
iphone 8 specifications
Remarkable! It’s really awesome piece of writing, I have got much clear idea on the topic of from this piece of writing.
Kingoroot App is very popular android rooting tool which is based on Windows And Android
Although this chat is relatively old, it was interesting to read ...
Loved to read your blog. I would like to suggest you that traffic show most people read blogs on Mondays. So it should encourage blogger to write new write ups over the weekend primarily.
Great post! Interesting information and <a href="http://www.aussieessays.org/">www.aussieessays.org</a> cute writing style.
Regards
Nice info, i this this feature is vey useful to medical human. Thank https://theoutdoorchamp.com/water-purification-tablets/
It's amazing to visit this site https://bestswissarmyknives.com/
Hi i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i could also create comment due to this brilliant paragraph. http://downloadfreecrack.com/hitmanpro/
very informatic and nice side for all I suggested to visit all of them https://freecrackpatch.com/avast-premier-2017-crack-activation-code/
i really appreciate your work. Thanks for this osm article, also check http://www.alltechprime.net/free-music-downloads-for-android/
Thanks for Sharing http://freeapkdownloads1.blogspot.com/2017/03/5-best-battery-saver-android-apps.html
Thanks for Sharing https://www.ienglishstatus.com
Nice blog. Found this while searching through
<a href="http://bit.ly/1bdDlXc">google</a>
<a href="http://www.ssc10thresults2017.in/">ap ssc results 2017 </a><br>
<a href="http://www.ssc10thresults2017.in/">ap 10th result 2017 name wise</a><br>
<a href="http://www.ssc10thresults2017.in/">ssc results 2017 telangana grade wise</a>
https://firstwoodworker.com/best-router-table-2016-unbiased-reviews-experts/
awsome post
http://happynavratri2017.com/
http://friendshipday2017wishes.com
http://happyfriendshipday2017i.com
http://ihappydiwali2017.com
http://ihappynewyear2018wishes.com
http://xhappynewyear2018.com
great work on your post i like it carry on very well dear
very well work you have out class writer http://crack66.com/
You Can Download Any Softwear Easily And Run..
nice post
192.168.o.1 Wireless internet router works by connecting a LAN wire to the open port on the router
http://www.192-168-o-1ip.net/
You Can Download Any Cracked Software Easily And Run..
Thanks
<a href="https://friendshipday2017wishes.com">Friendship Day 2017 Poems</a>
https://www.friendshipday2017wishes.com/
https://www.dailysmscollection.com/attitude-quotes/
https://usmovieshub.blogspot.com
http://wishuponfullmovie2017.blogspot.com
http://ethicalgames.blogspot.com
http://14-august-images.blogspot.com
http://www.fathersdayhd.com/2017/06/friendship-day-2017-wallpapers.html
<a href="http://watch-dramasonline.blogspot.com">Dramas Online</a>
http://www.diwaliwallpapers2017.com
http://www.diwaliwallpapers2017.com/2017/07/happy-diwali-2017-wallpapers-images.html
http://www.diwaliwallpapers2017.com/2017/07/happy-diwali-2017-quotes-wishes-poems.html
<a href="http://www.diwaliwallpapers2017.com/2017/07/happy-diwali-2017-quotes-messages.html">diwali messages sms 2017</a>
Wireless internet router works by connecting a LAN wire to the open port on the router
Makes me eager to read your blog, I also have an inspirational page http://www.ahlinyasyarafkejepit.web.id/obat-syringoma/
THANKS FOR SHARING NICE
http://www.happydiwali2017.org
http://www.happydiwali2017.org/happy-diwali-quotes/
http://www.happydiwali2017.org...-diwali-2017-wishes/
http://www.happydiwali2017.org...-diwali-2017-images/
http://www.happydiwali2017.org...017-whatsapp-status/
http://www.happydiwali2017.org/happy-diwali-2017-sms/
http://www.happydiwali2017.org...tus-quotes-pictures/
http://www.happydiwali2017.org...ards-greeting-cards/
http://www.happydiwali2017.org/diwali-2017-shayari/
http://www.happydiwali2017.org...-2017-status-quotes/
http://www.happydiwali2017.org...-2017-hd-wallpapers/
http://www.happydiwali2017.org...017-wishes-in-hindi/
http://www.happydiwali2017.org...-greetings-in-hindi/
http://www.happydiwali2017.org...reetings-in-english/
<a href="http://www.movieboxofficecollection.in"> box office collection </a>
<a href="http://www.freecricketnews.com"> cricket news </a>
<a href="http://www.infinitegk.in"> gk news </a>
<a href="http://www.gkmint.com"> gk </a>
<a href="http://www.onlinelivestreaming.in"> live streaming </a>
<a href="http://www.freshbollywoodnews.com"> bollywood news </a>
<a href="http://www.news24hour.in"> news 24 hour </a>
<a href="http://www.topupcomingmovies.in"> upcoming movies </a>
http://www.movieboxofficecollection.in
http://www.freecricketnews.com
http://www.infinitegk.in
http://www.gkmint.com
http://www.onlinelivestreaming.in
http://www.freshbollywoodnews.com
http://www.news24hour.in
http://www.topupcomingmovies.in
Such intelligent work on the subject and ideal way of writing here. I am really impressed!
http://www.playpokerguru.com/
A debt of gratitude is in order for the significant data and bits of knowledge you have so given here.
<a href="http://www.tubelightmovies.in">Tubelight Movie</a>
<a href="https://biggboss10contestantname.wordpress.com/2016/10/09/bigg-boss-10-contestants-name-list-2016">Top Bigg Boss 11 Contestants Name list</a>
<a href="https://biggboss10contestantsname.wordpress.com/2016/10/08/bigg-boss-10-contestants-names">Top Bigg Boss 11 Contestants Name list</a>
<a href="https://biggboss102016.wordpress.com/2016/10/08/bigg-boss-10-contestants-name-list-revealed">Top Bigg Boss 11 Contestants Names list</a>
<a href="https://biggboss10voting.wordpress.com/2016/10/25/bigg-boss-10-online-voting-process">Bigg Boss 11 Voting process</a>
<a href="https://biggbossseason10contestants.wordpress.com/2016/10/08/bigg-boss-season-10-participants-name-list">Top Bigg Boss 11 Contestants Name with Pics</a>
<a href="https://aman0330.tumblr.com/post/151521744801/bigg-boss-10-contestants-name">Top Bigg Boss 11 Contestants Name list</a>
https://happydiwaliwallpaper2017.com/100-happy-diwali-wallpaper-live-mobile-whatsapp/ happy diwali wallpaper hd widescreen
https://happydiwaliwallpaper2017.com/100-happy-diwali-wallpaper-live-mobile-whatsapp/ happy diwali wallpaper hd widescreen
https://profiles.wordpress.org/winchestergunsafe/
https://www.instagram.com/winchestergunsafe/
https://vimeo.com/winchestergunsafe/about
https://www.flickr.com/people/152069075@N03/
https://myspace.com/winchestergunsafe
http://www.moviesongreview.com/2017/09/daddy-3rd-day-collection-sunday-box-office-collection.html
Great.
<a href="https://www.lovequotesforu.com/happy-anniversary-wishesmarriagewedding-anniversary-wishesquotes//">Beautiful Anniversary wishes </a>
Awesome Article
<a href="https://www.lovequotesforu.com/love-quotes-for-him/">New Best Love quotes for him</a>
<a href="https://www.lovequotesforu.com/love-quotes-for-him/">Interesting Love quotes for my dear</a>
Nice..
https://www.jewellerkaka.com/shop-2/necklace-sets-women-designer-fashion-necklaces-india/beautiful-paisley-design-short-necklace-set/
https://www.jewellerkaka.com/shop-2/necklace-sets-women-designer-fashion-necklaces-india/beautiful-peacock-design-necklace-set/
you can find latest information
http://www.happynewyearimages-2016.com/2017/06/funny-christmas-whatsapp-status-images.html
http://www.happynewyearimages-2016.com/2017/06/download-free-merry-christmas-facebook-cover-photo.html
http://www.happynewyearimages-2016.com/2017/06/best-christmas-songs-for-kids.html
http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-husband.html
http://www.happynewyearimages-2016.com/2017/05/happy-new-year-wishes-for-girlfriend.html
http://www.happynewyearimages-2016.com/2016/10/happy-new-year-status-for-whatsapp-in-english.html
http://www.happynewyearimages-2016.com/2016/12/download-happy-new-year-sms-in-english.html
http://www.happynewyearimages-2016.com/2016/12/exciting-happy-new-year-funny-messages.html