•      
  • Garbage Burrito!An online internet web blog by Ben Kittrell
  • Blog
  • Tweets
  • Contact
  • Photos
  • Favorite Burrito
  • Burrito Shop
  • Cart
  • Login
  •      
 View Cart Login        

Garbage Burrito!

An online internet web blog by Ben Kittrell

  • Blog
  • Tweets
  • Contact
  • Photos
  • Favorite Burrito
  • Burrito Shop

 About Ben

Co-Founder of Doodlekit. Coder, Home Renovator, Enjoyer of Refreshing Beverages.

Sometimes I blog here, sometimes on Doodlekit, sometimes I tweet and now I podcast.

Most recently I've been doing software development strategy consulting for Kansas City businesses.  

 Doodlekit

Doodlekit is the easiest way for small businesses to create their own website.  Used by millions in over 180 countries.

Follow us for updates.

Doodlekit on Twitter
AngelList
LinkedIn
Facebook

160x600.gif

free website builder

 

 Blog Entries

  • Great Review of Doodlekit by Comparakeet
  • New Podcast Episode - Danny O'Neill - The Roasterie - Spare Room Radio
  • What I Wish Someone Told Me Before I Started Buying Podcast Equipment
  • Announcing Spare Room Radio - New Podcast
  • Google Fiber Experiment: Cloud Video Transcoding
more  

 Links


  • website reviewer
  • live on - sharing memories
  • kids website builder
  • resume website
  • martial arts website builder
  • affiliate website builder
  • teacher website

 Login

 Forgot Password?

 Forum Posts

  • rajablogid: RE: Stupid Simple, Yet Effective
  • julie mack: RE: JavaScripting with PDF's?
  • Megan Cunningham: RE: Java Generics
  • Deepika Sharma: RE: Grilled Cheese
  • German Byrd: RE: Grilled Cheese
more  

 Custom Login

 Forgot Password?
 Register

 Back to Blog

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...

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)

Tags: rails, ruby, bitchin, github

 Comments

 cartier replica sale My Website  04/28/2015 09:45AM 

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.

  07/14/2016 08:25AM 

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.

 kmas  10/20/2016 04:16PM 

good post.

  12/11/2016 03:33AM 

https://ahref.site/4ar5Y/
https://ahref.site/4ar5b/
https://ahref.site/4ar5a/
https://ahref.site/4ar5c/
https://ahref.site/4ar5d/

 iphone 8 specs My Website  12/14/2016 11:30AM 

iphone 8 price
iphone 8 specifications

 Safety vest My Website  12/20/2016 09:35AM 

Remarkable! It’s really awesome piece of writing, I have got much clear idea on the topic of from this piece of writing.

 TOM My Website  01/17/2017 07:59AM 

Kingoroot App is very popular android rooting tool which is based on Windows And Android 

 aussie essays My Website  01/19/2017 10:00PM 

Although this chat is relatively old, it was interesting to read ...

 www.aussieessays.org My Website  01/22/2017 03:13PM 

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.

 LindaMyers  01/22/2017 03:14PM 

Great post! Interesting information and <a href="http://www.aussieessays.org/">www.aussieessays.org</a> cute writing style.
Regards

 shahid  03/15/2017 02:42PM 

Nice info, i this this feature is vey useful to medical human. Thank https://theoutdoorchamp.com/water-purification-tablets/

 jack  03/15/2017 02:42PM 

It's amazing to visit this site https://bestswissarmyknives.com/

 kavin My Website  03/16/2017 12:12PM 

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/

 Jorsh1122 My Website  03/17/2017 02:00PM 

very informatic and nice side for all I suggested to visit all of them https://freecrackpatch.com/avast-premier-2017-crack-activation-code/

 peter  03/30/2017 05:11PM 

i really appreciate your work. Thanks for this osm article, also check http://www.alltechprime.net/free-music-downloads-for-android/

 Justing My Website  04/04/2017 10:10PM 

Thanks for Sharing http://freeapkdownloads1.blogspot.com/2017/03/5-best-battery-saver-android-apps.html

 Hindi Whatsapp Status My Website  04/17/2017 02:15PM 

Thanks for Sharing https://www.ienglishstatus.com

 google  04/20/2017 06:38AM 

Nice blog. Found this while searching through
<a href="http://bit.ly/1bdDlXc">google</a>

 ap ssc results 2017 My Website  04/27/2017 09:32PM 

<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>

 haxor  05/03/2017 01:33PM 

https://firstwoodworker.com/best-router-table-2016-unbiased-reviews-experts/

 Kassandra Swiss My Website  05/05/2017 06:14PM 

awsome post

 Kishan  05/25/2017 02:52PM 

http://happynavratri2017.com/
http://friendshipday2017wishes.com
http://happyfriendshipday2017i.com
http://ihappydiwali2017.com
http://ihappynewyear2018wishes.com
http://xhappynewyear2018.com

 Download Activation Key My Website  05/29/2017 12:15PM 

great work on your post i like it carry on very well dear

 marten66 My Website  05/29/2017 12:17PM 

very well work you have out class writer http://crack66.com/

 Ayden3163 My Website  05/31/2017 08:35AM 

You Can Download Any Softwear Easily And Run..

 Download Free Crack Software My Website  05/31/2017 08:46AM 

nice post

 192.168.o.1 My Website  05/31/2017 02:48PM 

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/

 Ayina67 My Website  06/03/2017 08:00AM 

You Can Download Any Cracked Software Easily And Run..

 Isani Gupta My Website  06/08/2017 06:00PM 

Thanks
<a href="https://friendshipday2017wishes.com">Friendship Day 2017 Poems</a>

 Birava My Website  06/08/2017 06:01PM 

https://www.friendshipday2017wishes.com/

 name  06/15/2017 06:46AM 

https://www.dailysmscollection.com/attitude-quotes/

 happy fathers day My Website  06/22/2017 11:41AM 

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

 nomi My Website  07/05/2017 02:14PM 

<a href="http://watch-dramasonline.blogspot.com">Dramas Online</a>

 diwali My Website  07/06/2017 07:14AM 

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>

 Azeem Ali My Website  07/25/2017 10:56PM 

Wireless internet router works by connecting a LAN wire to the open port on the router

 prox  08/10/2017 05:55AM 

Makes me eager to read your blog, I also have an inspirational page http://www.ahlinyasyarafkejepit.web.id/obat-syringoma/

 SURAJ My Website  08/11/2017 02:56PM 

THANKS FOR SHARING NICE

 SURAJ My Website  08/12/2017 07:30AM 

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/

 nick  08/17/2017 03:36PM 

<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>

 nick  08/17/2017 03:39PM 

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

 Poker in Delhi My Website  08/31/2017 02:02PM 

Such intelligent work on the subject and ideal way of writing here. I am really impressed!
http://www.playpokerguru.com/

 Snapchat Hack iphone My Website  08/31/2017 03:53PM 

A debt of gratitude is in order for the significant data and bits of knowledge you have so given here.

 Tina My Website  08/31/2017 11:06PM 


<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>

 happy diwali wallpaper hd widescreen My Website  09/04/2017 08:38AM 

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

 profile  09/05/2017 11:36PM 

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

 csd My Website  09/09/2017 09:15PM 

http://www.moviesongreview.com/2017/09/daddy-3rd-day-collection-sunday-box-office-collection.html

 Happy Anniversary Quotes My Website  09/11/2017 03:27PM 

Great.
<a href="https://www.lovequotesforu.com/happy-anniversary-wishesmarriagewedding-anniversary-wishesquotes//">Beautiful Anniversary wishes </a>

 Love quotes for him My Website  09/12/2017 08:47AM 

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>

 jewellerkaka My Website  09/12/2017 10:54AM 

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/

 shyam sunder My Website  09/12/2017 01:04PM 

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

 Previous 1 2 3 4 Next 

 Search

Follow On...

  • Facebook
  • Twitter
  • LinkedIn
  • Google+
  • Pinterest
  • RSS Feeds
  • Blog Posts,
  • Gallery Images,
  • Forum Topics

Copyright © 2006 Garbage Burrito. All Rights Reserved.
hosted by doodlekit™- free website builder

 

 powered by Doodlekit™ Free Website Builder