Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Process to create development setup data

#11

Add a migration that contains development setup data. This saves laborious seeding of the development database by each developer. Will probably remove this migration and come up with a better solution (rake task?) once near the end of the first development phase.

Reported by theirishpenguin · December 14th, 2008 @ 10:07 PM

State: resolved
Milestone: 0.1
Assigned to: theirishpenguin theirishpenguin

Activity

  1. theirishpenguin
    theirishpenguin

    I have added some seed data in a migration. I have put it up at http://github.com/theirishpengui...

    I need to work out how to get this onto the master tree.

    December 14th, 2008 @ 11:20 PM

  2. Gavin Joyce
    Gavin Joyce

    Thanks for doing this.

    I agree with your comment, a rake task would be a cleaner solution. Perhaps we should aim for this?

    December 14th, 2008 @ 11:58 PM

  3. theirishpenguin
    theirishpenguin

    Ok. I'll give the rake task a go.

    December 15th, 2008 @ 06:06 PM

  4. theirishpenguin
    theirishpenguin

    Rake task done as rake db:seed (also added a db:clean task). Should probably change this functionality to use a Factory, just like the specs?

    December 16th, 2008 @ 09:18 PM

  5. Gavin Joyce
    Gavin Joyce

    I think that we should be OK using the Models directly for this. The factory used in the specs will change soon anyway, it has issues with complex model relationships.

    December 17th, 2008 @ 06:11 PM

  6. Gavin Joyce
    Gavin Joyce
    • State changed from new to resolved

    December 17th, 2008 @ 07:15 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.