Make "rake" depend on "rake db:test:prepare".

This also tests for pending migrations.
Merge pull request #293 from pozorvlak/rake_dependency

Make "rake" depend on "rake db:test:prepare".
Added owner to planting

Previously we got the owner indirectly, through the garden in which the
planting was planted.  Now we're directly specifying an owner.  This
allows us to let people plant things in each other's gardens.

Tests are probably broken at this point; we're about to refactor ALL THE
THINGS.
Refactor ALL THE THINGS

Refactored tests to take into account that plantings now have owners
directly, not via gardens. Mostly this was just tweaking FactoryGirl
calls to do the right thing.
Set planting owner automatically in controller
Added rake task to update planting owner

(using planting.garden.owner)
Added plantings_count (i.e. counter_cache) to Member

Also removed the superfluous .plantings_count method on Crop, which was
causing some confusion.

A thing we learned today: we should use .size to find the size of
ActiveRecord collections, not .count, because .count doesn't use the
cache (while .size does).
Added plantings_count (i.e. counter_cache) to Member

Also removed the superfluous .plantings_count method on Crop, which was
causing some confusion.

A thing we learned today: we should use .size to find the size of
ActiveRecord collections, not .count, because .count doesn't use the
cache (while .size does).
Merge branch 'planting-owner' of github.com:Skud/growstuff into planting-owner
reined in over-enthusiastic rake task
Merge pull request #297 from Skud/cropbot-over-enthusiasm

reined in over-enthusiastic rake task
Merge branch 'planting-owner' into dev

Conflicts:
	script/deploy-tasks.sh
Merge branch 'dev' into places2

Conflicts:
	app/views/members/_popover.html.haml