I created a helper method:
def keys(user)
keys = []
user.useroptions.select(:properties).each do |opt|
a = opt.properties.keys
keys << a
end
keys.flatten.uniq
end
This iterates through all hstore records, grabs the keys, then flattens the hash, and puts only the uniq values