The problem is not about how I synch the db's, cause I don't think it's a good solution. The thing is that I have some constants ins my application, like you know, TRUE=1 and FALSE=0, and you obviously wanna have them in your tests. The difference is that my constants are my Roles. I decided to put them in the DB because they are not a single value, but something like a constant object. Maybe it's not the best decision, that's why I'm asking. Anyway, I've seen other serious plugins using db tables to store constants.
I've been thinking about it and maybe it is a good solution to avoid the migrates to insert that kind of data, but use instead an initializer. It will insert the data the first time in every enviroment. The only think is that it will be probably better to create the table from the initializer (cause it won't insert the data if you haven't executed its migrate) and it might be not very neat. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

