2015-12-07 95 views

回答

0

当应用程序启动时插入一些数据非常简单:Insert data in collection at Meteor's startuphttp://eureka.ykyuen.info/2015/02/19/meteor-insert-sample-data-if-the-mongodb-is-empty/

如果要编辑从版本X到版本Y的架构,可以查看此现有Meteor项目:https://github.com/wekan/wekan/blob/devel/server/migrations.js

如果你找真棒模式,使迁移(种子,回滚,等...),这是一个真棒(但在PHP):http://laravel.com/docs/5.1/migrations

相关问题