Enable hstore via migration
class EnableHstore < ActiveRecord::Migration
def self.up
execute 'CREATE EXTENSION hstore'
end
def self.down
execute 'DROP EXTENSION hstore'
end
end
Written by Frank
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#