ankane/ahoy — pull request #59 by codeanpeace (2014-12-10 17:10:51+00:00)
Title: Update README

Ahoy setup was working locally, but not passing build on [Codeship](www.codeship.io) because of a ``PG::UndefinedFunction:ERROR: function uuid_generate_v4() does not exist``. The fix was to add a migration before generating ahoy files that enabled extension 'uuid-ossp' as mentioned [here](http://rny.io/rails/postgresql/2013/07/27/use-uuids-in-rails-4-with-postgresql.html) and [here](http://blog.arkency.com/2014/10/how-to-start-using-uuid-in-activerecord-with-postgresql/).

```sh
-- enable_extension("plpgsql")
-> 0.0165s
-- create_table("ahoy_events", {:id=>:uuid, :force=>true})
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedFunction: ERROR: function uuid_generate_v4() does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
: CREATE TABLE "ahoy_events" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "visit_id" uuid, "user_id" integer, "name" character varying(255), "properties" json, "time" timestamp)
```

Additionally, after_action is now preferred to after_filter, which meshes well with the Ahoy method name track_action. (Rails commit)[https://github.com/rails/rails/commit/9d62e04838f01f5589fa50b0baa480d60c815e2c]