Environment specific seeds
pineapplethief opened this issue · 4 comments
As I understand the gem as it is does not support environment specific seeds. I think it's pretty usual case when you what to seed some development-specific data when working on new feature.
Is it hard to add such feature in the future?
Could you elaborate a little bit on this. Maybe provide a short example of specific features you would expect.
Maybe I don't get something and my request is sort of redundant, but imagine currencies exchanging web-app. Obviously, this would need seed data for currencies, transfer fees & allowed currency pairs in any environment. But, as I developer I don't want to seed 500Mb sql script out of production database to fill in such models as: User, Transfer, etc. (both because of size, AND because of some legal/corporate rules issues about accessing sensitive production data), but just a couple of records in development to get me started (like a simple user with simple password). So that I would throw in migration like db/data/development/add_users.rb that would be run only when environment is in development.
Sorry, I haven't updated README.md in my PR :)
Thanks A LOT! Exactly what I needed
2014-12-14 21:13 GMT+10:00 uno4ki notifications@github.com:
@pineapple-thief https://github.com/pineapple-thief #21
#21 ?Sorry, I haven't updated README.md in my PR :)
—
Reply to this email directly or view it on GitHub
#25 (comment)
.