TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rails SeedMigrations: Like schema migrations, but for your data

39 点作者 dschwartz88将近 11 年前

4 条评论

miles_matthias将近 11 年前
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 未加载
pjam将近 11 年前
Hey, one of the engineers who built this over here, happy to answer any questions you have.
评论 #7878459 未加载
jgrowl将近 11 年前
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 未加载
vassy将近 11 年前
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 未加载