TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rails SeedMigrations: Like schema migrations, but for your data

39 pointsby dschwartz88almost 11 years ago

4 comments

miles_matthiasalmost 11 years ago
We used a db/seeds.rb file mainly for fake data to get our development environments going until there is real user data to work with. Can you use SeedMigrations to have a set of dev seeds vs prod seeds?
评论 #7879345 未加载
pjamalmost 11 years ago
Hey, one of the engineers who built this over here, happy to answer any questions you have.
评论 #7878459 未加载
jgrowlalmost 11 years ago
What is the difference between this and say the seed-fu gem? Is having historical data the main advantage, so you can do rollbacks and such?
评论 #7878533 未加载
vassyalmost 11 years ago
This is so useful, thanks! Can it get existing data from the database? Or does it only translate the seeds.rb file? I&#x27;ve been using <a href="https://github.com/rroblak/seed_dump" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rroblak&#x2F;seed_dump</a> in the past.
评论 #7878509 未加载