agile-france / propile

Community Conference Program Compiler (for Agile France)
2 stars 8 forks source link

ADD seed.rb #9

Closed oelmekki closed 10 years ago

oelmekki commented 10 years ago

data/development.sqlite.backup has been converted as seed ruby file.

A few things to note about that :

Data was fixed to fullfill validations. As it was mostly fk pseudo constraints, it can be considered quite safe, even if we don't get the whole codebase for now.

Seeding database is fully destructive, wipping all data from database. This ensures we can force records id. As such, it should only be run as a setup step (and well, it's all it's about, after all).

Fix #3