RubyFlow The Ruby and Rails community linklog

You got NoSQL in my Postgres! Using Hstore in Rails

Wouldn’t it be awesome if we could just save data in a database like a hash? Well now you can, with hstore & Rails. Hstore is a key/value schema-less datastore in Postgres, use it just like a hash…(more)

Comments

Very cool. I’ve used HStore for a freelance project I did. It perfectly fit my needs. That HStore rails gem is awesome. The one thing you should be weary of is don’t just blindly execute the raw sql that the gem suggest you run to enable hstore. Look at the local hstore installation on your machine and run the sql from the hstore.sql file.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in