Pivotal talk: data-informed product decisions

http://www.meetup.com/Pivotal-Labs-Tech-Talks/events/213571202/

Migrating Postgres data from an old Rails project to a new one

TL;DR - this was my approach:

Creating a new app on heroku really is stupidly easy

heroku apps:create swingoutlondon2 --region eu
git push heroku master
heroku run rake db:migrate

A better way of writing commit messages

I’ve always tended to write commit messages by answering the question “What did I do?”, but I learned a different approach recently which tends to produce much more expressive commits, which are often more terse as well. Compare the following:

Useful rake tasks in Rails

When inside any directory with a Rakefile, you can bring up the list of available rake tasks with rake -T

Matching on a final segment of a string

when matching on the final segment of a string, e.g for a file extension, you could use a regular expression:

Gotcha: Initialising RSpec in a rails project

I use RSpec for doing TDD, and the rspec-rails gem for integration in Rails projects. On initialising RSpec for SOLDN2, with rspec init it generated the following spec helper (comments removed):

Getting to grips with postgres

So, having generated my Rails app and selected postgres as the development database, I’m now faced with getting the damn thing running. On a Eurostar train (under the English channel) i.e. with no internet.