Commit Graph

427 Commits

Author SHA1 Message Date
gnattery
3cff543184 rails g scaffold Comment 2013-02-06 14:49:49 +11:00
gnattery
dea5d2399c Migration for planting slugs 2013-01-18 15:37:36 +11:00
gnattery
d1e3f8ce32 Added description field to gardens 2013-01-18 15:11:11 +11:00
Skud
47719709ad Remove broken migrations
It seems these should never have been migrations in the first place.
It's considered an anti-pattern to include model code in your migrations
(these referred to User and Update), and we can see why -- having
renamed the models, these migrations now fail.

Apparently the Right Thing is to write a rake task to do the work in
question, and then run it via whatever deployment mechanism you use.
Since these have already been run on our dev server, and they're not all
that important anyway (i.e. won't break people's local machines they're
developing on, etc), and on top of all that they're a couple of months
old so most active developers should have run them already... as I was
saying, considering all that, I'm just blowing them away.
2013-01-13 11:49:58 +00:00
Skud
7abe7167d3 Fixed reference to User in db/seeds.rb 2013-01-13 11:33:16 +00:00
Skud
8da9a13eae Changed garden.member_id to garden.owner_id 2013-01-13 21:29:28 +11:00
Skud
df76f2497a renamed Post.member_id to Post.author 2013-01-13 20:57:28 +11:00
Skud
689448f87c renamed Member.username to login_name 2013-01-13 19:14:46 +11:00
Skud
657ccf7cd8 s/users/members/g -- models and tests for them 2013-01-13 17:24:46 +11:00
Skud
21f0f39bf9 Model and controller spec files pass.
Views are another matter (and will explode badly at this point)
2013-01-13 16:12:45 +11:00
Skud
a578375be5 Seeds weren't working because of tos_agreement 2012-12-19 13:50:03 +11:00
Skud
0af986021e Generated scaffold for plantings 2012-12-19 13:30:40 +11:00
Miles Gould
d2de7bc6f2 Add slugs to updates.
- add column to Update table
 - add a slug to all old updates
 - use slugs in URLs
 - make update slugs unique (we'll need them for delete URLs)
2012-12-15 00:18:46 +00:00
Skud
59083882d6 Merging in changes from dev to mygarden branch 2012-12-05 21:05:40 +11:00
Skud
208afba8c9 'Garden' is a better name, I think 2012-11-26 23:11:16 +11:00
Skud
760cf03b2c Fixed tests by getting rid of valid_session 2012-11-26 19:04:43 +11:00
Norman Ancajas
b39ee792b4 give each user a garden. note: tests broken! 2012-11-05 14:29:04 +08:00
Norman Ancajas
77c2e83c64 wrote migration to add test users, fixed tests 2012-11-05 13:03:19 +08:00
Norman Ancajas
f89815b6b3 added gardens table 2012-11-05 11:45:56 +08:00
Skud
3b72a9ed17 Set up friendly IDs for crops aka slugs (eww!) 2012-10-27 15:08:30 +11:00
Miles Gould
3419a559e1 Require a system name for crops. 2012-10-03 20:38:39 +01:00
Miles Gould
1d9c1b14fc Generate scaffold for Crops; refactor tests
Add link to Crops page from index
Refactored index/application tests to better reflect where things are.
2012-10-02 11:32:56 +01:00
Skud
9792abbf87 made user accounts confirmable by email 2012-09-03 13:16:24 +01:00
Skud
dcd4f79bdc You can now login using either username or email 2012-09-03 12:38:58 +01:00
Skud
89cb3c276f added devise and rspec, set up very basic login/signup links on homepage 2012-09-03 10:49:45 +01:00
Cesy Avon
8190af434f Getting the basic site working 2012-08-23 13:09:52 -07:00
Cesy Avon
95145f2869 Moving development to top level directory 2012-08-23 10:41:00 -07:00